MBED NanoService Lighting Endpoint for NXP Ublox (cellular enabled)

Dependencies:   C027_Support C12832 StatusReporter LM75B c027_radios endpoint_core endpoint_nsp nsp_resources mbed mbed-rtos

Revision:
216:b7a051cc4b6f
Parent:
215:b1766afe8471
Child:
217:57bed06b5fa3
--- a/Definitions.h	Thu Jul 03 16:32:20 2014 +0000
+++ b/Definitions.h	Thu Jul 03 18:36:14 2014 +0000
@@ -31,6 +31,11 @@
 #define CELLULAR_NETWORK                true                      // true - use cellular network, false - use ethernet (cannot co-exist together)
 //#define CELLULAR_DEBUG                  true                      // true - debug enabled, undef - no
 
+// NSP, which runs threaded, requires special handling of the cellular network stack with RTOS
+#ifdef CELLULAR_NETWORK
+    #define NSP_CELLULAR_NETWORK        true
+#endif
+
 // what kind of personality we are...
 //#define LIGHT_PERSONALITY               true                      // the endpoint will be a (set of) lights
 #define COPCAR_PERSONALITY              true                      // the endpoint will emulate a cop car
@@ -39,8 +44,8 @@
 #include "CommonDefinitions.h"
 
 // Turn all these on for cellular 
-#define EH_USE_MUTEXES              true                          // true - yes, undef - no
-#define NETWORK_MUTEX               true                          // true - yes, undef - no
+//#define EH_USE_MUTEXES              true                          // true - yes, undef - no
+//#define NETWORK_MUTEX               true                          // true - yes, undef - no
 #define ENABLE_THREADS              true                          // true - yes, undef - no
 
 // NSP specific definitions
@@ -49,8 +54,11 @@
 // OVERRIDE: NSP Endpoint
 #undef NSP_ADDRESS
 #undef NSP_PORT
-#define NSP_ADDRESS                "192.168.1.220"               // Target NSP Service
-#define NSP_PORT                   5683                          // Target NSP Service Port Number (def: 5683)
+//#define NSP_ADDRESS                "192.168.1.220"               // Target NSP Service
+//#define NSP_PORT                   5683                          // Target NSP Service Port Number (def: 5683)
+
+#define NSP_ADDRESS                "72.182.18.233"               // Target NSP Service
+#define NSP_PORT                   19648                         // Target NSP Service Port Number (def: 5683)
 
 // Philips Light Config
 #define PL_ENABLE                  false                         // true - enable for endpoint light, false - disable