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.

Committer:
Jan Jongboom
Date:
Fri Jul 01 12:57:32 2016 +0200
Revision:
20:b36b8a73b30f
Parent:
17:6d69aa1b393f
Child:
23:16f397924e3d
Move target dependencies out of application and into library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jan Jongboom 17:6d69aa1b393f 1 {
Jan Jongboom 17:6d69aa1b393f 2 "config": {
Jan Jongboom 17:6d69aa1b393f 3 "network-interface":{
Jan Jongboom 17:6d69aa1b393f 4 "help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD",
Jan Jongboom 17:6d69aa1b393f 5 "value": "ETHERNET"
Jan Jongboom 17:6d69aa1b393f 6 },
Jan Jongboom 17:6d69aa1b393f 7 "wifi-ssid": {
Jan Jongboom 17:6d69aa1b393f 8 "help": "WiFi SSID",
Jan Jongboom 17:6d69aa1b393f 9 "value": "\"SSID\""
Jan Jongboom 17:6d69aa1b393f 10 },
Jan Jongboom 17:6d69aa1b393f 11 "wifi-password": {
Jan Jongboom 17:6d69aa1b393f 12 "help": "WiFi Password",
Jan Jongboom 17:6d69aa1b393f 13 "value": "\"Password\""
Jan Jongboom 17:6d69aa1b393f 14 }
Jan Jongboom 17:6d69aa1b393f 15 }
Jan Jongboom 17:6d69aa1b393f 16 }