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:
sam_grove
Date:
Fri Jan 29 16:03:23 2016 +0000
Parent:
1:94ae3343aaa7
Child:
3:d047686d6e2c
Commit message:
Add error message for security.h

Changed in this revision

mbed-client-c.lib Show annotated file Show diff for this revision Revisions of this file
mbed-client-classic.lib Show annotated file Show diff for this revision Revisions of this file
mbed-client-mbedtls.lib Show annotated file Show diff for this revision Revisions of this file
mbed-client.lib Show annotated file Show diff for this revision Revisions of this file
mbedtls.lib Show annotated file Show diff for this revision Revisions of this file
nanostack-libservice.lib Show annotated file Show diff for this revision Revisions of this file
security.h Show annotated file Show diff for this revision Revisions of this file
--- a/mbed-client-c.lib	Thu Jan 28 17:29:48 2016 +0000
+++ b/mbed-client-c.lib	Fri Jan 29 16:03:23 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/apps-playground/code/mbed-client-c/#003f4b96615a
+http://developer.mbed.org/teams/sandbox/code/mbed-client-c/#003f4b96615a
--- a/mbed-client-classic.lib	Thu Jan 28 17:29:48 2016 +0000
+++ b/mbed-client-classic.lib	Fri Jan 29 16:03:23 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/apps-playground/code/mbed-client-classic/#2dc916e504c9
+http://developer.mbed.org/teams/sandbox/code/mbed-client-classic/#2dc916e504c9
--- a/mbed-client-mbedtls.lib	Thu Jan 28 17:29:48 2016 +0000
+++ b/mbed-client-mbedtls.lib	Fri Jan 29 16:03:23 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/apps-playground/code/mbed-client-mbedtls/#ffe3000287f1
+http://developer.mbed.org/teams/sandbox/code/mbed-client-mbedtls/#ffe3000287f1
--- a/mbed-client.lib	Thu Jan 28 17:29:48 2016 +0000
+++ b/mbed-client.lib	Fri Jan 29 16:03:23 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/apps-playground/code/mbed-client/#ba8bfc033d44
+http://developer.mbed.org/teams/sandbox/code/mbed-client/#ba8bfc033d44
--- a/mbedtls.lib	Thu Jan 28 17:29:48 2016 +0000
+++ b/mbedtls.lib	Fri Jan 29 16:03:23 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/apps-playground/code/mbedtls/#77ecc55ee50d
+http://developer.mbed.org/teams/sandbox/code/mbedtls/#77ecc55ee50d
--- a/nanostack-libservice.lib	Thu Jan 28 17:29:48 2016 +0000
+++ b/nanostack-libservice.lib	Fri Jan 29 16:03:23 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/apps-playground/code/nanostack-libservice/#637eee98f8db
+http://developer.mbed.org/teams/sandbox/code/nanostack-libservice/#637eee98f8db
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/security.h	Fri Jan 29 16:03:23 2016 +0000
@@ -0,0 +1,1 @@
+#error "You need to get credentials from connector.mbed.com and paste them in this security.h file"
\ No newline at end of file