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.

Revisions of simple-mbed-client.lib

Revision Date Message Actions
43:55ff37bc1332 2017-03-21 Update to mbed OS 5.4.1, update easy-connect and simple-mbed-client File  Diff  Annotate
42:64009de6e5a4 2017-02-08 Bump easy-connect and simple-mbed-client. Adds SimpleResourceFloat. File  Diff  Annotate
41:f944ef916f8f 2017-02-07 Data member initializer is not allowed in ARMCC File  Diff  Annotate
40:6c039d073c0b 2017-02-07 Defer LED play function to the event thread directly File  Diff  Annotate
38:fbbab77b54fb 2017-02-07 Bump mbed-os, easy-connect and simple-mbed-client. Get rid of stringstream. Work by default on devices without entropy sources File  Diff  Annotate
37:70eaf98b5486 2016-12-02 Update simple-mbed-client, use TCP by default File  Diff  Annotate
34:1e8d914a2876 2016-12-02 Move to mbed OS 5.2.3, get rid of Semaphore File  Diff  Annotate
33:dc49713510e7 2016-09-28 Update simple-mbed-client to change FunctionPointer into Callback File  Diff  Annotate
27:733d464dc189 2016-08-24 update simple-mbed-client File  Diff  Annotate
26:068f4d476fd3 2016-08-24 Update simple-mbed-client File  Diff  Annotate
22:acadaa153699 2016-08-15 Update easy-connect, simple-mbed-client and mbed-os File  Diff  Annotate
21:98a7fca9f99d 2016-07-01 Update simple-mbed-client File  Diff  Annotate
20:b36b8a73b30f 2016-07-01 Move target dependencies out of application and into library File  Diff  Annotate
17:6d69aa1b393f 2016-06-30 Update to latest mbed-os, latest simple-mbed-client, and add easy-connect File  Diff  Annotate
16:71ec73ea9b6d 2016-05-24 Move from mbed.bld to mbed-os.lib File  Diff  Annotate
15:27e27ae4a6b0 2016-05-24 Use sandbox/simple-mbed-client instead of janjongboom/simple-mbed-client File  Diff  Annotate
14:ddc258abaaac 2016-05-17 Use semaphore in interrupt context, and up value in main thread. File  Diff  Annotate
13:d4da5e6aa952 2016-05-15 Use simple-mbed-client to expose three resources to the cloud File  Diff  Annotate