Example program for simple-mbed-client, connecting a device to mbed Device Connector.
Dependencies: simple-mbed-client
Fork of simple-mbed-client-example by
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.
Revision 30:36236b00a869, committed 2016-09-06
- Comitter:
- Jan Jongboom
- Date:
- Tue Sep 06 14:19:41 2016 +0200
- Parent:
- 29:dd6231df71bb
- Child:
- 31:7da0411de650
- Commit message:
- Move TX/RX to target dependent vars as well
Changed in this revision
| mbed_app.json | Show annotated file Show diff for this revision Revisions of this file |
--- a/mbed_app.json Tue Sep 06 13:38:46 2016 +0200
+++ b/mbed_app.json Tue Sep 06 14:19:41 2016 +0200
@@ -6,11 +6,11 @@
},
"esp8266-tx": {
"help": "Pin used as TX (connects to ESP8266 RX)",
- "value": "PTD3"
+ "value": "D1"
},
"esp8266-rx": {
"help": "Pin used as RX (connects to ESP8266 TX)",
- "value": "PTD2"
+ "value": "D0"
},
"esp8266-ssid": {
"value": "\"SSID\""
@@ -34,10 +34,14 @@
"button": "SW2"
},
"HEXIWEAR": {
- "button": "PTA12"
+ "button": "PTA12",
+ "esp8266-tx": "PTD3",
+ "esp8266-rx": "PTD2"
},
"NUCLEO_F401RE": {
- "button": "USER_BUTTON"
+ "button": "USER_BUTTON",
+ "esp8266-tx": "D8",
+ "esp8266-rx": "D2"
}
}
}
