This is a simple mbed client example demonstrating, registration of a device with mbed Device Connector and reading and writing values as well as deregistering on different Network Interfaces including Ethernet, WiFi, 6LoWPAN ND and Thread respectively.

Dependencies:   lwip

Fork of mbed-os-example-client by mbed-os-examples

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Mar 09 14:30:14 2017 +0000
Parent:
70:64f9214729ae
Commit message:
Merge pull request #190 from ARMmbed/oob_test_mbed-os-5.4

OOB test mbed OS 5.4
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client

Changed in this revision

GW_Binary/gateway6LoWPANDynamic.bin Show annotated file Show diff for this revision Revisions of this file
GW_Binary/gateway6LoWPANStatic.bin Show annotated file Show diff for this revision Revisions of this file
GW_Binary/gatewayThreadDynamic.bin Show annotated file Show diff for this revision Revisions of this file
GW_Binary/gatewayThreadStatic.bin Show annotated file Show diff for this revision Revisions of this file
README.md Show annotated file Show diff for this revision Revisions of this file
configs/mesh_thread.json Show annotated file Show diff for this revision Revisions of this file
mbed-client.lib Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
Binary file GW_Binary/gateway6LoWPANDynamic.bin has changed
Binary file GW_Binary/gateway6LoWPANStatic.bin has changed
Binary file GW_Binary/gatewayThreadDynamic.bin has changed
Binary file GW_Binary/gatewayThreadStatic.bin has changed
--- a/README.md	Thu Mar 09 14:00:12 2017 +0000
+++ b/README.md	Thu Mar 09 14:30:14 2017 +0000
@@ -110,27 +110,17 @@
 
 6LoWPAN ND and Thread use IPv6 for connectivity. Therefore, you need to verify first that you have a working IPv6 connection. To do that, ping the Connector IPv6 address `2607:f0d0:2601:52::20` from your network.
 
-<span class="notes">**Note:** If you are using the [k64f-border-router](https://github.com/ARMmbed/k64f-border-router) (that can be used only as a 6LoWPAN BR and only with FRDM-K64F), you need to enable another security feature. By default, the `k64f-border-router` uses `PSK` as security.</span>
+#### Border router
 
-You can enable the security here on your mbed-os-example-client application, for example:
+There are two options for border router.
+
+##### Nanostack-border-router
 
-```json
-    "target_overrides": {
-        "*": {
-            "mbed-mesh-api.6lowpan-nd-security-mode": "PSK",
-        }
-	}
-```
+ The [Nanostack-border-router](https://github.com/ARMmbed/nanostack-border-router-private) can be configured and built for the 6LoWPAN ND or Thread mode.  
 
-Alternatively, you can remove the link layer security from the `k64f-border-router`. To do that, change the [mbed_app.json](https://github.com/ARMmbed/k64f-border-router/blob/master/mbed_app.json) fetched from the `k64f-border-router` repository, for example: 
+##### mbed gateway
 
-```json
-    "config": {
-            "security-mode": "NONE",
-        }
-```
-
-#### mbed gateway
+The mbed gateway is a binary release only.
 
 To connect the example application in 6LoWPAN ND or Thread mode to mbed Device Connector, you need to set up an mbed 6LoWPAN gateway router as follows:
 
@@ -283,13 +273,12 @@
     mbed import mbed-os-example-client
     ```
 
-3. Copy the relevant example configuration file from configs/xxx.json to mbed_app.json and
-   [Configure](#application-setup) the client application.
-
 4. To build the application, select the hardware board and build the toolchain using the command:
 
-    ```
-    mbed compile -m K64F -t GCC_ARM -c
+	Specify the config file in the build command, for example for 6LoWPAN
+
+	```
+    mbed compile -m K64F -t GCC_ARM -c --app-config configs/6lowpan_Atmel_RF.json
     ```
 
     mbed CLI builds a binary file under the project’s `BUILD/` directory.
--- a/configs/mesh_thread.json	Thu Mar 09 14:00:12 2017 +0000
+++ b/configs/mesh_thread.json	Thu Mar 09 14:30:14 2017 +0000
@@ -15,8 +15,8 @@
             "target.features_add": ["NANOSTACK", "THREAD_ROUTER", "COMMON_PAL"],
             "platform.stdio-baud-rate": 115200,
             "platform.stdio-convert-newlines": true,
-            "mbed-mesh-api.thread-config-channel": 12,
-            "mbed-mesh-api.thread-config-panid": "0xDEFA",
+            "mbed-mesh-api.thread-config-channel": 22,
+            "mbed-mesh-api.thread-config-panid": "0x0700",
             "mbed-trace.enable": 0
         }
     }
--- a/mbed-client.lib	Thu Mar 09 14:00:12 2017 +0000
+++ b/mbed-client.lib	Thu Mar 09 14:30:14 2017 +0000
@@ -1,2 +1,2 @@
-https://github.com/ARMmbed/mbed-client/#d41459d8b514d72d525e761fb4e34031e09f76e7
+https://github.com/ARMmbed/mbed-client/#52e65b46dff7935024e91ed045eadaab298149b6
 
--- a/mbed-os.lib	Thu Mar 09 14:00:12 2017 +0000
+++ b/mbed-os.lib	Thu Mar 09 14:30:14 2017 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#5faf4b26c5954d15c7c1cccac6498e0c690ad101
+https://github.com/ARMmbed/mbed-os/#305f5c491e34d86098e9da91b322017549c189ff
\ No newline at end of file