projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[CONPRO-1337] Disabled Presence Feature"
[platform/upstream/iotivity.git]
/
plugins
/
samples
/
linux
/
IotivityandZigbeeServer.c
diff --git
a/plugins/samples/linux/IotivityandZigbeeServer.c
b/plugins/samples/linux/IotivityandZigbeeServer.c
index
dc011aa
..
8caa729
100644
(file)
--- a/
plugins/samples/linux/IotivityandZigbeeServer.c
+++ b/
plugins/samples/linux/IotivityandZigbeeServer.c
@@
-139,11
+139,14
@@
OCStackResult SetDeviceInfo()
static OCDeviceInfo deviceInfo =
{
.deviceName = "IoTivity/Zigbee Server Sample",
static OCDeviceInfo deviceInfo =
{
.deviceName = "IoTivity/Zigbee Server Sample",
+ .specVersion = "IoTivity/Zigbee Device Spec Version",
};
};
+ char *dmv = OICStrdup("IoTivity/Zigbee Data Model Version");
+ deviceInfo.dataModelVersions = (OCStringLL *)OICCalloc(1, sizeof(OCStringLL));
+ deviceInfo.dataModelVersions->value = dmv;
char *dup = OICStrdup("oic.wk.d");
deviceInfo.types = (OCStringLL *)OICCalloc(1, sizeof(OCStringLL));
deviceInfo.types->value = dup;
char *dup = OICStrdup("oic.wk.d");
deviceInfo.types = (OCStringLL *)OICCalloc(1, sizeof(OCStringLL));
deviceInfo.types->value = dup;
- OICFree(dup);
return OCSetDeviceInfo(deviceInfo);
}
return OCSetDeviceInfo(deviceInfo);
}