Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-client by
Diff: simpleclient.h
- Revision:
- 57:bb3eca53b307
- Parent:
- 48:bef96b79dec0
- Child:
- 59:b2569564d62c
--- a/simpleclient.h Tue Jan 17 12:15:09 2017 +0000 +++ b/simpleclient.h Thu Jan 26 12:00:10 2017 +0000 @@ -55,11 +55,11 @@ //Select binding mode: UDP or TCP -- note - Mesh networking is IPv6 UDP ONLY #ifdef MESH - M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP; + M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP; #else - // WiFi or Ethernet supports both - TCP by default to avoid - // NAT problems, but UDP will also work - IF you configure - // your network right. + // WiFi or Ethernet supports both - TCP by default to avoid + // NAT problems, but UDP will also work - IF you configure + // your network right. M2MInterface::BindingMode SOCKET_MODE = M2MInterface::TCP; #endif @@ -316,10 +316,11 @@ */ void value_updated(M2MBase *base, M2MBase::BaseType type) { printf("\r\nPUT Request Received!"); - printf("\r\nName :'%s', \r\nType : '%d' (0 for Object, 1 for Resource), \r\nType : '%s'\r\n", - base->name().c_str(), + printf("\r\nName :'%s', \r\nPath : '%s', \r\nType : '%d' (0 for Object, 1 for Resource), \r\nType : '%s'\r\n", + base->name(), + base->uri_path(), type, - base->resource_type().c_str() + base->resource_type() ); }