Dreamforce 2015 BLE-based mDS HeartRate Monitor Endpoint

Dependencies:   GroveEarbudSensor mbed mbedConnectorInterface mbedEndpointNetwork_BLE

Revision:
35:4adef21fd8b6
Parent:
26:9538393569fa
Child:
37:55a66b48199a
--- a/main.cpp	Wed May 13 14:30:01 2015 +0000
+++ b/main.cpp	Wed May 13 14:32:08 2015 +0000
@@ -75,13 +75,10 @@
 // My NSP Domain
 #define MY_NSP_DOMAIN                          "domain"                               
 
-// Customization Example: My custom NSP IPv6 address and NSP CoAP port
-//uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {72,182,4,230}; 
-//int my_nsp_coap_port                          = 26395;          // www.ansonworks.com:27164
+// Point my BLE-based Endpoint towards mDS running in Azure - 70.37.91.233
+uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {70,37,91,233};
+int my_nsp_coap_port                          = 5683;
 
-// Customization Example: My custom NSP IPv6 address and NSP CoAP port
-uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {10,1,0,26}; 
-int my_nsp_coap_port                          = 5683;
 
 // called from the Endpoint::start() below to create resources and the endpoint internals...
 Connector::Options *configure_endpoint(Connector::OptionsBuilder &config)
@@ -93,6 +90,12 @@
                  .setDomain(MY_NSP_DOMAIN)                                // custom NSP domain
                  .setNSPPortNumber(my_nsp_coap_port)                      // custom NSP CoAP port
                  
+                 // enable or disable(default) immediate observationing control
+                 .setImmedateObservationEnabled(true)
+                 
+                 // enable or disable(default) GET-based observation control
+                 .setEnableGETObservationControl(false)
+                 
                  // add the static resource representing this endpoint
                  .addResource(&mfg)
                  .addResource(&model)