Multitech + KL46Z NanoService example with the RTOS

Dependencies:   mbed SocketModem nanoservice_client_1_12

Revision:
12:d86931458473
Parent:
11:caf0bdbec3ac
Child:
13:fbb719dc3ec4
--- a/main.cpp	Wed Feb 19 22:26:37 2014 +0000
+++ b/main.cpp	Wed Feb 19 22:55:09 2014 +0000
@@ -22,8 +22,8 @@
 Endpoint nsp;
 static const char* NSP_ADDRESS = "208.111.39.209"; /* demo NSP, web interface at http://nanoservice-demo.mbed.org*/ 
 static const int NSP_PORT = 5683;
-char endpoint_name[] = {"mbed-cellular-zach"};
-uint8_t ep_type[] = {"mbed_lpc1768_appboard"};
+char endpoint_name[] = {"mbed-cellular-mwc1"};
+uint8_t ep_type[] = {"mbed_kl64z_multitech"};
 uint8_t lifetime_ptr[] = {"86400"};
 
 typedef uint8_t (*sn_grs_dyn_res_callback_t)(sn_coap_hdr_s *, sn_nsdl_addr_s *, sn_proto_info_s *);
@@ -221,7 +221,8 @@
     nsdl_create_static_resource(resource_ptr, sizeof("3/0/0")-1, (uint8_t*) "3/0/0", 0, 0,  (uint8_t*) "Freescale/Multitech", sizeof("Freescale/Multitech")-1);
     nsdl_create_static_resource(resource_ptr, sizeof("3/0/1")-1, (uint8_t*) "3/0/1", 0, 0,  (uint8_t*) "KL64Z with Multitech Cellular", sizeof("KL64Z with Multitech Cellular")-1);
     nsdl_create_static_resource(resource_ptr, sizeof("3/0/16")-1, (uint8_t*) "3/0/16", 0, 0,  (uint8_t*) "TCP", sizeof("TCP")-1);
-    nsdl_create_static_resource(resource_ptr, sizeof("gps/loc")-1, (uint8_t*) "gps/loc", 0, 0,  (uint8_t*) "41.3575130, 2.1249660", sizeof("41.3575130, 2.1249660")-1);
+    //nsdl_create_static_resource(resource_ptr, sizeof("gps/loc")-1, (uint8_t*) "gps/loc", 0, 0,  (uint8_t*) "41.3575130, 2.1249660", sizeof("41.3575130, 2.1249660")-1);
+    // Broken: This cause the modem driver to crash when the request is received.
 
     // Dynamic resources
     // create_light_resource(resource_ptr);