Example program for simple-mbed-client, connecting a device to mbed Device Connector.

Dependencies:   simple-mbed-client

Fork of simple-mbed-client-example by Jan Jongboom

This is an example on how to connect to mbed Device Connector using simple-mbed-client. It can connect over Ethernet, WiFi (using an ESP8266 module or an ODIN board), Thread and 6LoWPAN.

After cloning this repository update `mbed_app.json` to reflect your connectivity method. For docs on configuring connectivity, see easy-connect.

End to end example

For an end-to-end example of using Simple mbed Client to connect devices to mbed Device Connector see Building an internet connected lighting system.

Entropy (or lack thereof)

On all platforms except the K64F and K22F the library is compiled without TLS entropy sources. This means that your code is inherently unsafe and should not be deployed to any production systems. To enable entropy, remove the MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES and MBEDTLS_TEST_NULL_ENTROPY macros from mbed_app.json.

Files at this revision

API Documentation at this revision

Comitter:
Jan Jongboom
Date:
Tue Mar 21 13:04:50 2017 +0100
Parent:
42:64009de6e5a4
Commit message:
Update to mbed OS 5.4.1, update easy-connect and simple-mbed-client

Changed in this revision

easy-connect.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
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
simple-mbed-client.lib Show annotated file Show diff for this revision Revisions of this file
--- a/easy-connect.lib	Wed Feb 08 11:55:28 2017 +0100
+++ b/easy-connect.lib	Tue Mar 21 13:04:50 2017 +0100
@@ -1,1 +1,1 @@
-https://github.com/armmbed/easy-connect/#a913964341394430cd3997c6f2950f93ba1d75c8
+https://github.com/armmbed/easy-connect/#395e3cd97d052c82c51bd63616ea0c4085f45b8b
--- a/mbed-os.lib	Wed Feb 08 11:55:28 2017 +0100
+++ b/mbed-os.lib	Tue Mar 21 13:04:50 2017 +0100
@@ -1,1 +1,1 @@
-https://github.com/mbedmicro/mbed/#269f58d75b752a4e67a6a2d8c5c698635ffd6752
+https://github.com/mbedmicro/mbed/#f4864dc6429e1ff5474111d4e0f6bee36a759b1c
--- a/mbed_app.json	Wed Feb 08 11:55:28 2017 +0100
+++ b/mbed_app.json	Tue Mar 21 13:04:50 2017 +0100
@@ -1,11 +1,11 @@
 {
     "config": {
         "network-interface":{
-            "help": "options are ETHERNET,WIFI_ESP8266,MESH_LOWPAN_ND,MESH_THREAD",
+            "help": "options are ETHERNET,WIFI_ESP8266,WIFI_ODIN,MESH_LOWPAN_ND,MESH_THREAD",
             "value": "ETHERNET"
         },
         "mesh_radio_type": {
-        	"help": "options are ATMEL, MCR20",
+        	"help": "options are ATMEL, MCR20, SPIRIT1",
         	"value": "ATMEL"
         },
         "esp8266-tx": {
--- a/simple-mbed-client.lib	Wed Feb 08 11:55:28 2017 +0100
+++ b/simple-mbed-client.lib	Tue Mar 21 13:04:50 2017 +0100
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/sandbox/code/simple-mbed-client/#17b4681e3353
+https://developer.mbed.org/teams/sandbox/code/simple-mbed-client/#c89df15e88d2