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.
Diff: wakaama/packet.c
- Revision:
- 15:d0f20339c1ad
- Parent:
- 14:ec9e195830ff
- Child:
- 16:31c387e94b6d
--- a/wakaama/packet.c Sat May 06 11:21:27 2017 +0000 +++ b/wakaama/packet.c Sun May 07 03:00:16 2017 +0000 @@ -118,27 +118,28 @@ #else uriP = uri_decode(NULL, message->uri_path); #endif - + printf("TERENCE:%s:%d\n",__FUNCTION__,__LINE__); if (uriP == NULL) return COAP_400_BAD_REQUEST; - + printf("TERENCE:%s:%d uriP->flag = %d\n",__FUNCTION__,__LINE__, uriP->flag); switch(uriP->flag & LWM2M_URI_MASK_TYPE) { #ifdef LWM2M_CLIENT_MODE case LWM2M_URI_FLAG_DM: { -#ifdef MBED_OS_EXAMPLE_WAKAAMA - result = dm_handleRequest(contextP, uriP, fromSessionH, message, response); -#else + lwm2m_server_t * serverP; - + printf("TERENCE:%s:%d\n",__FUNCTION__,__LINE__); + serverP = utils_findServer(contextP, fromSessionH); if (serverP != NULL) { + printf("TERENCE:%s:%d\n",__FUNCTION__,__LINE__); result = dm_handleRequest(contextP, uriP, serverP, message, response); } #ifdef LWM2M_BOOTSTRAP else { + printf("TERENCE:%s:%d\n",__FUNCTION__,__LINE__); serverP = utils_findBootstrapServer(contextP, fromSessionH); if (serverP != NULL) { @@ -146,7 +147,6 @@ } } #endif -#endif } break;