This is an example based on mbed-os cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Fri Nov 23 12:00:32 2018 +0000
Parent:
28:232da3ce8a88
Child:
30:b528cee9bf09
Commit message:
Updated json configuration instructions in READ.me.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular

Changed in this revision

README.md Show annotated file Show diff for this revision Revisions of this file
--- a/README.md	Fri Nov 23 10:00:30 2018 +0000
+++ b/README.md	Fri Nov 23 12:00:32 2018 +0000
@@ -29,22 +29,11 @@
 See the file `mbed_app.json` in the root directory of your application. This file contains all the user specific configurations your application needs. Provide the pin code for your SIM card, as well as any APN settings if needed. For example:
 
 ```json
-        "sim-pin-code": {
-            "help": "SIM PIN code, set to 0 if none",
-            "value": "\"1234\""
-        },
-        "apn": {
-            "help": "The APN string to use for this SIM/network, set to 0 if none",
-            "value": "\"internet\""
-        },
-        "username": {
-            "help": "The user name string to use for this APN, set to zero if none",
-            "value": 0
-        },
-        "password": {
-            "help": "The password string to use for this APN, set to 0 if none",
-            "value": 0
-        }
+        "nsapi.default-cellular-plmn": 0,
+        "nsapi.default-cellular-sim-pin": "\"1234\"",
+        "nsapi.default-cellular-apn": 0,
+        "nsapi.default-cellular-username": 0,
+        "nsapi.default-cellular-password": 0
 ```
 
 ### Selecting socket type (TCP or UDP)