mbed Ethernet-based CoAP heartrate endpoint for Dreamforce 2015

Dependencies:   GroveEarbudSensor mbed mbedConnectorInterface mbedEndpointNetwork

Revision:
2:630ffd1c52cc
Parent:
1:96f6a05fa403
Child:
3:4246dd70c0dc
--- a/main.cpp	Sun Aug 30 05:41:14 2015 +0000
+++ b/main.cpp	Tue Sep 01 21:19:23 2015 +0000
@@ -50,7 +50,8 @@
 #define MY_NSP_DOMAIN                           "dfbridgeXX"            // replace "XX" with your number
 
 // Customization Example: My custom NSP IPv4 address and NSP CoAP port 
-uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {129,41,134,39};     // bluemix vm v2.4
+//uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {129,41,134,39};     // bluemix vm v2.4
+uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {129,41,134,116};     // bluemix vm v2.3
 int my_nsp_coap_port                          = 5683;
 
 // called from the Endpoint::start() below to create resources and the endpoint internals...
@@ -75,8 +76,8 @@
                  
                  // add the heartrate resource
                  .addResource(&light)
-                 .addResource(&hr)                   // Resource implements its own observationing...
-                 .addResource(&location,9000)        // observe every 9 seconds
+                 .addResource(&hr)                  // internal observe            
+                 .addResource(&location,15000)      // observe every 15 seconds (its currently static...)
                                       
                  // finalize the configuration...
                  .build();