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:
- 37:9a9428fc4b26
- Parent:
- 32:7b3841243d70
- Child:
- 42:d9a3043214a6
diff -r bfb6816a677c -r 9a9428fc4b26 simpleclient.h --- a/simpleclient.h Tue Nov 29 12:30:11 2016 +0000 +++ b/simpleclient.h Fri Dec 02 08:45:12 2016 +0000 @@ -42,7 +42,7 @@ M2MInterface::NetworkStack NETWORK_STACK = M2MInterface::LwIP_IPv4; //Select binding mode: UDP or TCP -M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP; +M2MInterface::BindingMode SOCKET_MODE = M2MInterface::TCP; // MBED_DOMAIN and MBED_ENDPOINT_NAME come