Accord to the spec, get the interface by running command var oicPresence = require('iotivity-node')('client');, all properties of the interface OicPresence should exist and can invoke the method or event.
Actually, the methods subscribe(), unsubscribe() and ondevicechange are undefined in interface OicPresence.
Accord to the spec, get the interface by running command
var oicPresence = require('iotivity-node')('client');
, all properties of the interfaceOicPresence
should exist and can invoke the method or event. Actually, the methodssubscribe()
,unsubscribe()
andondevicechange
are undefined in interfaceOicPresence
.