NanoService Device Library Hello World Ported to K64F

Dependencies:   EthernetInterface mbed-rtos mbed nsdl_lib

Fork of NSDL_HelloWorld by Sensinode

Files at this revision

API Documentation at this revision

Comitter:
romedius
Date:
Mon Feb 29 05:43:05 2016 +0000
Parent:
9:16f54efbb5fe
Commit message:
Porting the NSDL Example to the K64F board. (Beta!)

Changed in this revision

nsdl_support.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 16f54efbb5fe -r 1875353284c1 nsdl_support.cpp
--- a/nsdl_support.cpp	Mon Feb 29 05:09:16 2016 +0000
+++ b/nsdl_support.cpp	Mon Feb 29 05:43:05 2016 +0000
@@ -157,8 +157,8 @@
         }
         else
         {   
-            pc.printf("Received %d bytes\r\n", n);
-            sn_nsdl_process_coap((uint8_t*)buffer, n, &received_packet_address);
+            int r =  sn_nsdl_process_coap((uint8_t*)buffer, n, &received_packet_address);
+            pc.printf("Received %d bytes, result: %d \r\n", n, r);
         }
     }
 }