OC_LOG_V(INFO, TAG, "\n\nExecuting %s", __func__);
std::ostringstream query;
query << (coapSecureResource ? "coaps://" : "coap://") << coapServerIP
- << ":" << coapServerPort
-#ifdef CA_INT_DTLS
- << "/"
-#endif
- << coapServerResource;
+ << ":" << coapServerPort << coapServerResource;
return (InvokeOCDoResource(query, OC_REST_PUT, OC_LOW_QOS, putReqCB, NULL, 0));
}
OC_LOG_V(INFO, TAG, "\n\nExecuting %s", __func__);
std::ostringstream query;
query << (coapSecureResource ? "coaps://" : "coap://") << coapServerIP
- << ":" << coapServerPort
-#ifdef CA_INT_DTLS
- << "/"
-#endif
- << coapServerResource;
+ << ":" << coapServerPort << coapServerResource;
return (InvokeOCDoResource(query, OC_REST_GET, (qos == OC_HIGH_QOS)?
OC_HIGH_QOS:OC_LOW_QOS, getReqCB, NULL, 0));
#define SAMPLE_MAX_NUM_POST_INSTANCE 2
static LEDResource gLedInstance[SAMPLE_MAX_NUM_POST_INSTANCE];
-#ifdef CA_INT_DTLS
-char *gResourceUri= (char *)"a/led";
-#else
char *gResourceUri= (char *)"/a/led";
-#endif
static uint16_t OC_WELL_KNOWN_PORT = 5683;