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-09-23
- Revision:
- 47:ab19d1336686
- Parent:
- 46:b872be3e1526
- Child:
- 49:4defa45f9c7f
File content as of revision 47:ab19d1336686:
{ "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.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, "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" } } }