},
timeInterval: {
get: function() {
- /* TODO Uncomment when the interface of the function iotcon_remote_resource_get_time_interval is changed
var callArgs = prepareResourceInfo(this, true);
- */
- var callArgs = {};
var result = native.callSync('IotconRemoteResource_getTimeInterval', callArgs);
if (native.isSuccess(result)) {
return null;
}.bind(this),
set: function(val) {
- /* TODO Uncomment when the interface of the function iotcon_remote_resource_set_time_interval is changed
var callArgs = prepareResourceInfo(this, true);
callArgs[timeInterval] = converter.toLong(val);
- */
- var callArgs = {
- timeInterval: converter.toLong(val)
- };
native.callSync('IotconRemoteResource_setTimeInterval', callArgs);
}.bind(this),
},
set: function(v) {
if (v) {
- var deviceName = converter.toString(v);
+ var deviceName = v;
var callArgs = {
deviceName: deviceName
if (!res) {
LogAndReturnTizenError(res, ("iotcon_remote_resource_get_checking_interval() failed"));
}
-
return common::TizenSuccess{picojson::value(static_cast<double>(time_interval))};
}
LogAndReturnTizenError(res, ("iotcon_remote_resource_set_checking_interval() failed"));
}
- // TODO Uncomment when the interface of the function iotcon_remote_resource_set_time_interval is changed
- // return common::TizenSuccess{IotconClientManager::GetInstance().StoreRemoteResource(ptr)};
-
- return common::TizenSuccess{};
+ return common::TizenSuccess{IotconClientManager::GetInstance().StoreRemoteResource(ptr)};
}
bool IotconInstance::ResourceFoundCallback(iotcon_remote_resource_h resource,