Library that implements the CellularInterface using PPP and LWIP on the mbed MCU. May be used on the C027 and C030 (non-N2xx flavour) boards from mbed 5.5 onwards.

Dependents:   example-ublox-cellular-interface HelloMQTT example-ublox-cellular-interface_r410M example-ublox-mbed-client

Revision:
0:44dd95724bc2
Child:
1:80ec3fccad9e
diff -r 000000000000 -r 44dd95724bc2 TESTS/unit_tests/default/template_mbed_app.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TESTS/unit_tests/default/template_mbed_app.txt	Wed Jun 14 09:27:55 2017 +0000
@@ -0,0 +1,92 @@
+{
+    "config": {
+        "platform": {
+            "help": "The platform for the cellular feature, e.g. UBLOX or MTS_DRAGONFLY",
+            "value": "UBLOX"
+        },
+        "buffer-size": {
+            "value": 0
+        },
+        "debug-on": {
+            "help": "Set to true to get AT interface debug",
+            "value": false
+        },
+        "run-sim-pin-change-tests": {
+            "help": "If 1, run the SIM PIN change tests, for which default-pin must be defined",
+            "value": 0
+        },
+        "default-pin": {
+            "help": "The current value of the SIM PIN as a string; if PIN is enabled on your SIM, or you wish to run the SIM PIN change tests, you must put the PIN for your SIM here",
+            "value": "\"1234\""
+        },
+        "apn": {
+            "help": "The APN string to use for this SIM/network, set to 0 if none",
+            "value": 0
+        },
+        "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
+        },
+        "alt-pin": {
+            "help": "The SIM PIN (as a string) that will be used for SIM PIN change tests (the SIM PIN will be changed back to default-pin afterwards)",
+            "value": "\"9876\""
+        },
+        "incorrect-pin": {
+            "help": "A SIM PIN (as a string) that should not be the same as default-pin or alt-pin",
+            "value": "\"1530\""
+        },
+        "echo-server": {
+            "help": "The URL string of the UDP/TCP echo server to use during testing; if this is not defined, no echo tests will be run",
+            "value": "\"yourechoserver.com\""
+        },
+        "echo-udp-port": {
+            "help": "The port to connect to on echo-server for UDP testing",
+            "value": 7
+        },
+        "echo-tcp-port": {
+            "help": "The port to connect to on echo-server for TCP testing",
+            "value": 7
+        },
+        "ntp-server": {
+            "help": "The URL string of the NTP server to use during testing",
+            "value": "\"2.pool.ntp.org\""
+        },
+        "ntp-port": {
+            "help": "The port to connect to on ntp-server",
+            "value": 123
+        },
+        "local-port": {
+            "help": "The local port to use when testing sock.bind()",
+            "value": 16
+        },
+        "udp-max-packet-size": {
+            "help": "The maximum UDP packet size to use when testing; 1024 bytes is the limit at the AT interface but 508 bytes is considered more reliable for the public internet",
+            "value": 508
+        },
+        "tcp-max-packet-size": {
+            "help": "The maximum TCP packet size to use when testing",
+            "value": 1500
+        }
+    },
+    "target_overrides": {
+        "*": {
+            "lwip.ipv4-enabled": true,
+            "lwip.ipv6-enabled": false,
+            "lwip.ethernet-enabled": false,
+            "lwip.ppp-enabled": true,
+            "lwip.tcp-enabled": true,
+            "target.features_add": ["LWIP", "COMMON_PAL"],
+            "platform.stdio-convert-newlines": true,
+            "platform.stdio-baud-rate": 9600,
+            "platform.default-serial-baud-rate": 115200, 
+            "lwip.debug-enabled": false,
+            "lwip.enable-ppp-trace": false,
+            "lwip.use-mbed-trace": false,
+            "mbed-trace.enable": 1
+        }
+    }
+}