![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Diff: simpleclient.h
- Revision:
- 43:90fccf21be20
- Parent:
- 42:d9a3043214a6
- Child:
- 48:bef96b79dec0
--- a/simpleclient.h Sun Dec 11 08:15:09 2016 +0000 +++ b/simpleclient.h Mon Dec 12 12:00:11 2016 +0000 @@ -38,6 +38,13 @@ #define STRINGIFY(s) #s +// Check if using mesh networking, define helper +#if MBED_CONF_APP_NETWORK_INTERFACE == MESH_LOWPAN_ND + #define MESH +#elif MBED_CONF_APP_NETWORK_INTERFACE == MESH_THREAD + #define MESH +#endif + #if defined (MESH) || (MBED_CONF_LWIP_IPV6_ENABLED==true) // Mesh is always IPV6 - also WiFi and ETH can be IPV6 if IPV6 is enabled M2MInterface::NetworkStack NETWORK_STACK = M2MInterface::LwIP_IPv6;