This is a simple mbed client example demonstrating, registration of a device with mbed Device Connector and reading and writing values as well as deregistering on different Network Interfaces including Ethernet, WiFi, 6LoWPAN ND and Thread respectively.

Fork of mbed-os-example-client by mbed-os-examples

Committer:
mbed_official
Date:
Wed Feb 15 08:00:11 2017 +0000
Revision:
63:c73f78fd7982
Parent:
62:077cbce2bd10
Integrate easy-connect, fix serial, fix warning (#176)

Integrate easy-connect
- we can remove all the external RF-drivers from main folder
- get easy-connect into use
- remove all the complicated network stuff

Fix serial - we don't need raw serial and we don't need to initialize it
if we set the right stuff to mbed_app.json (added). Plain printf() works
and it even does type checking now. (Points to Kevin Bracey on this).

Start the thread in a non-deprecated way using callback to remove one compiler
warning (again, points to Kevin Bracey).

Easy-connect ESP8266 TX/RX pins in different defines.
mbed-os-example-client has NEVER used 2 sets of WiFi pins, so need
to add a define to hack them into one set - otherwise it will not compile.

The cp command would not have worked if one would have changed
the compiler. Add UBLOX ODIN ETH config to be built as well,
now that we have figured out how to make the the ethernet work
on it.

Change also the WIFI to work with easy-connect. Easy-connect has 2 separate WIFIs,
so you have to choose between ESP8266 vs. ODIN. Thus, 2 config files are also needed,
one for ESP8266 and one for ODIN.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 45:b150e0aa009c 1 {
mbed_official 45:b150e0aa009c 2 "config": {
mbed_official 45:b150e0aa009c 3 "network-interface":{
mbed_official 63:c73f78fd7982 4 "help": "Options are ETHERNET, WIFI_ESP8266, WIFI_ODIN, MESH_LOWPAN_ND, MESH_THREAD",
mbed_official 45:b150e0aa009c 5 "value": "ETHERNET"
mbed_official 45:b150e0aa009c 6 }
mbed_official 45:b150e0aa009c 7 },
mbed_official 45:b150e0aa009c 8 "macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""],
mbed_official 45:b150e0aa009c 9 "target_overrides": {
mbed_official 45:b150e0aa009c 10 "*": {
mbed_official 45:b150e0aa009c 11 "target.features_add": ["LWIP", "COMMON_PAL"],
mbed_official 63:c73f78fd7982 12 "platform.stdio-baud-rate": 115200,
mbed_official 63:c73f78fd7982 13 "platform.stdio-convert-newlines": true,
mbed_official 45:b150e0aa009c 14 "lwip.ipv4-enabled": false,
mbed_official 45:b150e0aa009c 15 "lwip.ipv6-enabled": true,
mbed_official 45:b150e0aa009c 16 "mbed-trace.enable": 0
mbed_official 62:077cbce2bd10 17 },
mbed_official 62:077cbce2bd10 18 "UBLOX_EVK_ODIN_W2": {
mbed_official 62:077cbce2bd10 19 "target.device_has_remove": ["EMAC"]
mbed_official 45:b150e0aa009c 20 }
mbed_official 45:b150e0aa009c 21 }
mbed_official 45:b150e0aa009c 22 }