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.

Changes

RevisionDateWhoCommit message
43:55ff37bc1332 2017-03-21 Jan Jongboom Update to mbed OS 5.4.1, update easy-connect and simple-mbed-client default tip
42:64009de6e5a4 2017-02-08 Jan Jongboom Bump easy-connect and simple-mbed-client. Adds SimpleResourceFloat.
41:f944ef916f8f 2017-02-07 Jan Jongboom Data member initializer is not allowed in ARMCC
40:6c039d073c0b 2017-02-07 Jan Jongboom Defer LED play function to the event thread directly
39:5ee408a26231 2017-02-07 Jan Jongboom Remove mbedtls_mbed_client_config, as it now lives in the library
38:fbbab77b54fb 2017-02-07 Jan Jongboom Bump mbed-os, easy-connect and simple-mbed-client. Get rid of stringstream. Work by default on devices without entropy sources
37:70eaf98b5486 2016-12-02 Jan Jongboom Update simple-mbed-client, use TCP by default
36:52249470d973 2016-12-02 Jan Jongboom Add built-in LED on/off state for NUMAKER
35:4b11d20d60e9 2016-12-02 Jan Jongboom Move main.cpp into source directory
34:1e8d914a2876 2016-12-02 Jan Jongboom Move to mbed OS 5.2.3, get rid of Semaphore
33:dc49713510e7 2016-09-28 Jan Jongboom Update simple-mbed-client to change FunctionPointer into Callback
32:498a158491ff 2016-09-26 Jan Jongboom Pin easy-connect to master again, too much problems. Need to wait until mbed OS 5.2 before moving back to patched esp8266 lib
31:7da0411de650 2016-09-20 Jan Jongboom Upgrade to mbed OS 5.1.4
30:36236b00a869 2016-09-06 Jan Jongboom Move TX/RX to target dependent vars as well
29:dd6231df71bb 2016-09-06 Jan Jongboom Override button in config, update mbed-os to latest master, update easy-connect
28:f5e41738699d 2016-08-25 Jan Jongboom Make SW2 the button again
27:733d464dc189 2016-08-24 Jan Jongboom update simple-mbed-client
26:068f4d476fd3 2016-08-24 Jan Jongboom Update simple-mbed-client
25:b93913439b93 2016-08-24 Jan Jongboom Revert mbed_app.json to use Ethernet and IPV4 feature
24:0a61ee19cf5b 2016-08-24 Jan Jongboom Update easy-connect, use mbed OS 5.1.2, not master
23:16f397924e3d 2016-08-23 Jan Jongboom Update to latest mbed-os and easy-connect
22:acadaa153699 2016-08-15 Jan Jongboom Update easy-connect, simple-mbed-client and mbed-os
21:98a7fca9f99d 2016-07-01 Jan Jongboom Update simple-mbed-client
20:b36b8a73b30f 2016-07-01 Jan Jongboom Move target dependencies out of application and into library
19:3c04dc872ca5 2016-07-01 Jan Jongboom Remove security.h
18:9aadd6ce6f87 2016-06-30 Jan Jongboom Remove my security certificate
17:6d69aa1b393f 2016-06-30 Jan Jongboom Update to latest mbed-os, latest simple-mbed-client, and add easy-connect
16:71ec73ea9b6d 2016-05-24 Jan Jongboom Move from mbed.bld to mbed-os.lib
15:27e27ae4a6b0 2016-05-24 janjongboom Use sandbox/simple-mbed-client instead of janjongboom/simple-mbed-client
14:ddc258abaaac 2016-05-17 janjongboom Use semaphore in interrupt context, and up value in main thread.
13:d4da5e6aa952 2016-05-15 janjongboom Use simple-mbed-client to expose three resources to the cloud
12:31e60c8bb7f6 2016-03-07 geky Added LWIPInterface
11:341c9f62028b 2016-03-03 geky Adopted the NetworkSocketAPI
10:1280c4c21987 2016-02-19 geky Merged hanging branches
9:96dddeefafe4 2016-02-18 geky Updated libraries to latest revision
8:edf87b3b8ce2 2016-02-11 geky Merged rev7/rev4
7:711dfefe12ab 2016-02-05 sam_grove Update sec file
6:db94bb4054f2 2016-02-05 Sam Grove Add hgignore file
5:53d0782896dc 2016-02-05 sam_grove remove readme and add macros.txt
4:dcd0494556be 2016-02-11 geky Switched to semaphore over conditions for signalling multiple updates
3:d047686d6e2c 2016-02-05 geky Added correct config constants
2:e0bbeb20071b 2016-01-29 sam_grove Add error message for security.h
1:94ae3343aaa7 2016-01-28 geky Added note about constants needed in README
0:9ad9d701b1c3 2016-01-28 geky Initial commit