adding resources firmware and 1/0/8

Dependencies:   Beep C12832_lcd EthernetInterface EthernetNetIf HTTPClient LM75B MMA7660 mbed-rtos mbed nsdl_lib

Fork of LWM2M_NanoService_Ethernet by Pascal Nysten

Revision:
21:978281bfb26e
Parent:
7:6b068978be9a
--- a/nsdl_support.cpp	Tue Apr 08 01:02:06 2014 +0000
+++ b/nsdl_support.cpp	Tue Oct 27 07:11:46 2015 +0000
@@ -2,19 +2,18 @@
 
 #include "mbed.h"
 #include "nsdl_support.h"
-#include "mbed.h"
 #include "rtos.h"
 #include "EthernetInterface.h"
 
 extern Serial pc;
 extern EthernetInterface eth;
-extern Endpoint nsp;
+extern Endpoint udm;
 extern UDPSocket server;
 extern char endpoint_name[16];
 extern uint8_t ep_type[];
 extern uint8_t lifetime_ptr[];
 
-/* The number of seconds between NSP registration messages */
+/* The number of seconds between UDM registration messages */
 #define RD_UPDATE_PERIOD  60
 
 void *nsdl_alloc(uint16_t size)
@@ -91,7 +90,7 @@
 {
     pc.printf("TX callback!\n\rSending %d bytes\r\n", data_len);
 
-    if(server.sendTo(nsp, (char*)data_ptr, data_len) != data_len)
+    if(server.sendTo(udm, (char*)data_ptr, data_len) != data_len)
         pc.printf("sending failed\n\r");
 
     return 1;
@@ -112,16 +111,16 @@
         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)
-            pc.printf("NSP re-registering failed\r\n");
+            pc.printf("UDM re-registering failed\r\n");
         else
-            pc.printf("NSP re-registering OK\r\n");
+            pc.printf("UDM re-registering OK\r\n");
         nsdl_clean_register_endpoint(&endpoint_ptr);
     }
 }
 
 void nsdl_init()
 {
-    uint8_t nsp_addr[4];
+    uint8_t udm_addr[4];
     sn_nsdl_mem_s memory_cbs;
 
     /* Initialize libNsdl */
@@ -132,8 +131,8 @@
     else
         pc.printf("libNsdl init done\r\n");
 
-    /* Set nsp address for library */
-    set_NSP_address(nsp_addr, 5683, SN_NSDL_ADDRESS_TYPE_IPV4);
+    /* Set udm address for library */
+    set_NSP_address(udm_addr, 5683, SN_NSDL_ADDRESS_TYPE_IPV4);
 }
 
 void nsdl_event_loop()