This is an example based on mbed-os cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server.
mbed_app.json
- Committer:
- mbed_official
- Date:
- 2019-12-04
- Revision:
- 50:5378d3f64df1
- Parent:
- 49:4defa45f9c7f
- Child:
- 51:f4b4b186f3a2
File content as of revision 50:5378d3f64df1:
{ "config": { "sock-type": "TCP", "echo-server-hostname": { "help": "Echo server host name.", "value": "\"echo.mbedcloudtesting.com\"" }, "echo-server-port": { "help": "Echo server port number.", "value": 7 }, "trace-level": { "help": "Options are TRACE_LEVEL_ERROR,TRACE_LEVEL_WARN,TRACE_LEVEL_INFO,TRACE_LEVEL_DEBUG", "macro_name": "MBED_TRACE_MAX_LEVEL", "value": "TRACE_LEVEL_INFO" } }, "target_overrides": { "*": { "target.network-default-interface-type": "CELLULAR", "mbed-trace.enable": false, "lwip.ipv4-enabled": true, "lwip.ipv6-enabled": true, "lwip.ethernet-enabled": false, "lwip.ppp-enabled": true, "lwip.tcp-enabled": true, "platform.stdio-convert-newlines": true, "platform.stdio-baud-rate": 115200, "platform.default-serial-baud-rate": 115200, "platform.stdio-buffered-serial": true, "cellular.debug-at": false, "cellular.use-apn-lookup": true, "nsapi.default-cellular-sim-pin": null, "nsapi.default-cellular-plmn": null, "nsapi.default-cellular-apn": null, "nsapi.default-cellular-username": null, "nsapi.default-cellular-password": null }, "DISCO_L496AG": { "target.macros_add": [ "CELLULAR_DEVICE=STModCellular" ], "target.components_add": ["STMOD_CELLULAR"], "stmod_cellular.provide-default": "true" } } }