From 14963cc0bfa671e5a209c008c2c47669d92d0a48 Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Tue, 9 Sep 2014 17:26:41 -0400 Subject: [PATCH] Just realized that these should NOT be PCF'd. If a server or client were using these as defined to be in program memory, the stack would have been storing the location the strings were stored in memory instead of their actual values when running on Arduino. PCF has no effect on Linux. Change-Id: Iada6282befa17878f87045141580c7e330c732c1 --- csdk/stack/include/ocstack.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/csdk/stack/include/ocstack.h b/csdk/stack/include/ocstack.h index 6b8edc7..92d7e3e 100644 --- a/csdk/stack/include/ocstack.h +++ b/csdk/stack/include/ocstack.h @@ -32,15 +32,15 @@ extern "C" { //----------------------------------------------------------------------------- //May want to refactor this in upcoming sprints. Don't want to expose to application layer that lower level stack is using CoAP. -#define OC_WELL_KNOWN_QUERY PCF("coap://224.0.1.187:5683/oc/core") -#define OC_EXPLICIT_DEVICE_DISCOVERY_URI PCF("coap://224.0.1.187:5683/oc/core?rt=core.led") -#define OC_MULTICAST_PREFIX PCF("coap://224.0.1.187:5683") +#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 USE_RANDOM_PORT (0) #ifdef WITH_PRESENCE #define OC_DEFAULT_PRESENCE_TTL (60) -#define OC_PRESENCE_URI PCF("/oc/presence") -extern uint8_t PresenceTimeOutSize; // lenght of PresenceTimeOut - 1 +#define OC_PRESENCE_URI "/oc/presence" +extern uint8_t PresenceTimeOutSize; // length of PresenceTimeOut - 1 extern uint32_t PresenceTimeOut[]; #endif //----------------------------------------------------------------------------- -- 2.7.4