added max-age and content-format

Fork of mbedConnectorInterface by Doug Anson

Revision:
5:a929d65eb385
Parent:
4:84159d67d32d
Child:
6:516a88842a2b
--- a/api/Utils.cpp	Wed Jan 28 12:11:22 2015 +0000
+++ b/api/Utils.cpp	Wed Jan 28 14:43:46 2015 +0000
@@ -56,7 +56,7 @@
     config.setRadioChannelList(NODE_CHANNEL_LIST);
     config.setReadUpdatePeriod(NSP_RD_UPDATE_PERIOD);
     config.setEndpointNodename(NODE_NAME); 
-    config.setMACAddress(app_MAC_address);   
+    config.setMACAddress(app_MAC_address);   // TODO: arm_ns_tasklet_create() should call Endpoint::plumbNetwork()... currently its called before this MAC address can be (re)set
     
     // main.cpp can override or change any of the above defaults...
     logger.log("configure_endpoint: enabling default configuration overrides...");
@@ -68,7 +68,7 @@
     memcpy(endpoint_name,options->getEndpointNodename().c_str(),NODE_NAME_LENGTH);
     memcpy(ep_type,options->getEndpointType().c_str(),NSP_ENDPOINT_TYPE_LENGTH);
     memcpy(lifetime_ptr,options->getLifetime(),NSP_LIFE_TIME_LENGTH);
-    memcpy(app_MAC_address,options->getMACAddress(),NODE_MAC_ADDRESS_LENGTH);
+    memcpy(app_MAC_address,options->getMACAddress(),NODE_MAC_ADDRESS_LENGTH); // TODO: arm_ns_tasklet_create() should call Endpoint::plumbNetwork()... currently its called before this MAC address can be (re)set
     channel_list = options->getRadioChannelList();
 
     // alloc Endpoint