Change-Id: I6b73a795f02d244d9e0b417a2b7b2f3aa7fc91a3
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/553
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
#define OC_EXPLICIT_DEVICE_DISCOVERY_URI "224.0.1.187:5683/oc/core/d?rt=core.led"
#define OC_MULTICAST_PREFIX "224.0.1.187:5683"
#define OC_MULTICAST_IP "224.0.1.187"
+#define OC_MULTICAST_PORT 5683
#ifdef WITH_PRESENCE
#define OC_DEFAULT_PRESENCE_TTL (60)
CAAddress_t addressInfo;
strncpy(addressInfo.IP.ipAddress, OC_MULTICAST_IP, CA_IPADDR_SIZE);
- addressInfo.IP.port = 5683;
+ addressInfo.IP.port = OC_MULTICAST_PORT;
//TODO make sure there is no memory leak here since another copy
//of token is being created inside AddObserver