mbedConnectorInterface sample endpoint utilizing 3g cellular radio as the underlying connection transport.

Dependencies:   LM75B mbed mbedConnectorInterface mbedEndpointNetwork_Ublox

Revision:
6:15431341f373
Parent:
4:c022c5e05347
Child:
7:68f1eadf4a63
--- a/main.cpp	Fri May 22 15:55:39 2015 +0000
+++ b/main.cpp	Thu Jul 23 19:42:38 2015 +0000
@@ -25,7 +25,7 @@
 
 // U-Blox Cellular Support
 #include "MBEDUbloxCellRadio.h"
-MDMRtos<MDMSerial> modem;
+MDMSerial modem;
 MBEDUbloxCellRadio cellular((void *)&modem);
 
 // mbed Connector Endpoint includes
@@ -63,16 +63,16 @@
 
 // Temperature Resource
 #include "TemperatureResource.h"
-TemperatureResource temperature(&logger,"303/0/5700");
+TemperatureResource temperature(&logger,"303/0/5700",true);
 
 // Set our own unique endpoint name
 #define MY_ENDPOINT_NAME                       "mbed-ublox-endpoint"
 
 // My NSP Domain
-#define MY_NSP_DOMAIN                          "domain"                               
+#define MY_NSP_DOMAIN                          "domain" 
 
 // Customization Example: My custom NSP IPv4 address and NSP CoAP port 
-uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {70,37,91,233};       // azure
+uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {23,99,29,171};       // connector (api.connector.mbed.org)
 int my_nsp_coap_port                          = 5683;
 
 // called from the Endpoint::start() below to create resources and the endpoint internals...