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:
Wed Aug 24 17:19:13 2016 +0200
Parent:
23:16f397924e3d
Child:
25:b93913439b93
Commit message:
Update easy-connect, use mbed OS 5.1.2, not master

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
--- a/easy-connect.lib	Tue Aug 23 16:02:01 2016 +0200
+++ b/easy-connect.lib	Wed Aug 24 17:19:13 2016 +0200
@@ -1,1 +1,1 @@
-https://github.com/armmbed/easy-connect/#c2b63f8793187dfd8e4264149540e21fccb12b9a
+https://github.com/armmbed/easy-connect/#5a733bd2750342660d9021bfc9b3583ca8c62668
--- a/mbed-os.lib	Tue Aug 23 16:02:01 2016 +0200
+++ b/mbed-os.lib	Wed Aug 24 17:19:13 2016 +0200
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#862db41be3159b31fea590c2a4e58acd1c675a9f
+https://github.com/ARMmbed/mbed-os/#d2202045ac8f2fc63836a5b7131c9b56ac58f06a
--- a/mbed_app.json	Tue Aug 23 16:02:01 2016 +0200
+++ b/mbed_app.json	Wed Aug 24 17:19:13 2016 +0200
@@ -2,7 +2,7 @@
     "config": {
         "network-interface":{
             "help": "options are ETHERNET,WIFI_ESP8266,MESH_LOWPAN_ND,MESH_THREAD",
-            "value": "ETHERNET"
+            "value": "WIFI_ESP8266"
         },
         "esp8266-tx": {
             "help": "Pin used as TX (connects to ESP8266 RX)",
@@ -24,7 +24,7 @@
     },
     "target_overrides": {
         "*": {
-            "target.features_add": ["IPV4", "IPV6"]
+            "target.features_add": ["IPV6"]
         }
     }
 }