Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LM75B mbed mbedConnectorInterface mbedEndpointNetwork_Ublox
Diff: main.cpp
- Revision:
- 4:c022c5e05347
- Parent:
- 3:4f9f65a2463b
- Child:
- 6:15431341f373
--- a/main.cpp Tue Apr 28 20:01:29 2015 +0000
+++ b/main.cpp Wed May 13 14:45:33 2015 +0000
@@ -71,8 +71,8 @@
// 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] = {10,1,0,26};
+// 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
int my_nsp_coap_port = 5683;
// called from the Endpoint::start() below to create resources and the endpoint internals...
@@ -85,6 +85,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)