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.
Dependencies: EthernetInterface PololuLedStripx mbed-rtos mbed nanoservice_client_1_12_X
Fork of LPC1768_LWM2M_Client by
Revision 8:1358fc888c9c, committed 2014-09-29
- Comitter:
- michaeljkoster
- Date:
- Mon Sep 29 01:49:26 2014 +0000
- Parent:
- 7:59c7b96ace5b
- Child:
- 9:a580c20d6bb5
- Commit message:
- Cleanup working version
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| nsdl_support.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Sep 28 23:59:14 2014 +0000
+++ b/main.cpp Mon Sep 29 01:49:26 2014 +0000
@@ -66,9 +66,6 @@
UDPSocket server;
Endpoint nsp;
-bool UDP_blocking = false;
-unsigned int UDP_timeout = 1000;
-
char * ipstring;
char * uid;
@@ -76,9 +73,6 @@
{
server.init();
server.bind(NSP_PORT);
-
- /* server.set_blocking(UDP_blocking, UDP_timeout); */
-
nsp.set_address(NSP_ADDRESS, NSP_PORT);
--- a/nsdl_support.cpp Sun Sep 28 23:59:14 2014 +0000
+++ b/nsdl_support.cpp Mon Sep 29 01:49:26 2014 +0000
@@ -146,8 +146,6 @@
while(true)
{
wait(RD_UPDATE_PERIOD);
- //endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t*)endpoint_name, ep_type, lifetime_ptr);
- //if(sn_nsdl_register_endpoint(endpoint_ptr) != 0)
endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t*)null_ep_name, null_ep_type, null_lifetime_ptr);
if(sn_nsdl_update_registration(endpoint_ptr) != 0)
pc.printf("NSP re-registering failed\r\n");
@@ -189,7 +187,6 @@
while(1)
{
int n = server.receiveFrom(from, buffer, sizeof(buffer));
- pc.printf("receive:\r\n");
if (n < 0)
{
pc.printf("Socket error\n\r");
