sleep(1);
res = OCCreateResource(&presenceNotificationHandles[i],
presenceNotificationResources.at(i).c_str(),
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
presenceNotificationUris.at(i).c_str(),
OCNOPEntityHandlerCb,
OC_DISCOVERABLE|OC_OBSERVABLE);
lightResource->power= 0;
OCStackResult res = OCCreateResource(&(lightResource->handle),
"core.light",
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
uri,
OCEntityHandlerCb,
OC_DISCOVERABLE|OC_OBSERVABLE);
OCStackResult res = OCCreateResource(&REFER.m_handle,
"SSManager.Sensor",
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
"/Reference_Thing",
OCEntityHandlerCb,
OC_DISCOVERABLE | OC_OBSERVABLE);
OCStackResult res = OCCreateResource(&m_handle,
"SSManager.Sensor",
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
"/Tracker_Thing",
OCEntityHandlerCb,
OC_DISCOVERABLE | OC_OBSERVABLE);
OCStackResult res = OCCreateResource(&TH.m_handle,
"SSManager.Sensor",
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
"/Thing_TempHumSensor",
OCEntityHandlerCb,
OC_DISCOVERABLE | OC_OBSERVABLE);
OCStackResult res = OCCreateResource(&TH.m_handle,
"SSManager.Sensor",
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
"/Thing_TempHumSensor1",
OCEntityHandlerCb,
OC_DISCOVERABLE | OC_OBSERVABLE);
OCStackResult res = OCCreateResource(&m_handle,
"SSManager.Sensor",
- "oc.mi.def",
+ OC_RSRVD_INTERFACE_DEFAULT,
"/Tracker_Thing",
OCEntityHandlerCb,
OC_DISCOVERABLE | OC_OBSERVABLE);