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:
Wed Aug 24 17:20:06 2016 +0200
Revision:
25:b93913439b93
Parent:
24:0a61ee19cf5b
Child:
29:dd6231df71bb
Revert mbed_app.json to use Ethernet and IPV4 feature

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 23:16f397924e3d 4 "help": "options are ETHERNET,WIFI_ESP8266,MESH_LOWPAN_ND,MESH_THREAD",
Jan Jongboom 25:b93913439b93 5 "value": "ETHERNET"
Jan Jongboom 17:6d69aa1b393f 6 },
Jan Jongboom 23:16f397924e3d 7 "esp8266-tx": {
Jan Jongboom 23:16f397924e3d 8 "help": "Pin used as TX (connects to ESP8266 RX)",
Jan Jongboom 23:16f397924e3d 9 "value": "PTD3"
Jan Jongboom 23:16f397924e3d 10 },
Jan Jongboom 23:16f397924e3d 11 "esp8266-rx": {
Jan Jongboom 23:16f397924e3d 12 "help": "Pin used as RX (connects to ESP8266 TX)",
Jan Jongboom 23:16f397924e3d 13 "value": "PTD2"
Jan Jongboom 23:16f397924e3d 14 },
Jan Jongboom 23:16f397924e3d 15 "esp8266-ssid": {
Jan Jongboom 17:6d69aa1b393f 16 "value": "\"SSID\""
Jan Jongboom 17:6d69aa1b393f 17 },
Jan Jongboom 23:16f397924e3d 18 "esp8266-password": {
Jan Jongboom 17:6d69aa1b393f 19 "value": "\"Password\""
Jan Jongboom 23:16f397924e3d 20 },
Jan Jongboom 23:16f397924e3d 21 "esp8266-debug": {
Jan Jongboom 23:16f397924e3d 22 "value": true
Jan Jongboom 23:16f397924e3d 23 }
Jan Jongboom 23:16f397924e3d 24 },
Jan Jongboom 23:16f397924e3d 25 "target_overrides": {
Jan Jongboom 23:16f397924e3d 26 "*": {
Jan Jongboom 25:b93913439b93 27 "target.features_add": ["IPV4", "IPV6"]
Jan Jongboom 17:6d69aa1b393f 28 }
Jan Jongboom 17:6d69aa1b393f 29 }
Jan Jongboom 17:6d69aa1b393f 30 }