mbed Ethernet-based CoAP heartrate endpoint for Dreamforce 2015
Dependencies: GroveEarbudSensor mbed mbedConnectorInterface mbedEndpointNetwork
Diff: main.cpp
- Revision:
- 4:7efe785afc7f
- Parent:
- 3:4246dd70c0dc
- Child:
- 7:ccfb09b66c0b
--- a/main.cpp Tue Sep 01 22:09:29 2015 +0000 +++ b/main.cpp Fri Sep 04 21:04:44 2015 +0000 @@ -50,8 +50,7 @@ #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,116}; // bluemix vm v2.3 +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... @@ -76,8 +75,8 @@ // add the heartrate resource .addResource(&light) - .addResource(&hr,1000) // observe every 1 second - .addResource(&location,15000) // observe every 15 seconds (its currently static...) + .addResource(&hr,7100) // observe every 7.1 seconds + .addResource(&location,45000) // observe every 45 seconds (its currently static...) // finalize the configuration... .build();