#define OC_WELL_KNOWN_QUERY "coap://224.0.1.187:5683/oc/core"
#define OC_EXPLICIT_DEVICE_DISCOVERY_URI "coap://224.0.1.187:5683/oc/core?rt=core.led"
#define OC_MULTICAST_PREFIX "coap://224.0.1.187:5683"
+#define OC_MULTICAST_IP "coap://224.0.1.187"
#define USE_RANDOM_PORT (0)
#ifdef WITH_PRESENCE
* OC_SLOW - When this bit is set, the resource has been marked as 'slow'. 'slow' signifies
* that responses from this resource can expect delays in processing its
* requests from clients.
+ * OC_SECURE - When this bit is set, the resource is a secure resource.
*/
typedef enum {
OC_ACTIVE = (1 << 0),
OC_DISCOVERABLE = (1 << 1),
OC_OBSERVABLE = (1 << 2),
- OC_SLOW = (1 << 3)
+ OC_SLOW = (1 << 3),
+ OC_SECURE = (1 << 4)
} OCResourceProperty;
/**
* OC_STACK_INVALID_CALLBACK - invalid callback function pointer
* OC_STACK_INVALID_METHOD - invalid resource method
* OC_STACK_INVALID_URI - invalid required or reference URI
+ * OC_STACK_INVALID_QUERY - number of resource types specified for filtering presence
+ * notifications exceeds @ref MAX_PRESENCE_FILTERS.
*/
OCStackResult OCDoResource(OCDoHandle *handle, OCMethod method, const char *requiredUri, const char *referenceUri,
const char *request, OCQualityOfService qos, OCCallbackData *cbData, OCHeaderOption * options,