name: 'resourceTypes',
type: types.ARRAY,
values: types.STRING
+ }, {
+ name: 'resourceInterfaces',
+ type: types.ARRAY,
+ values: types.STRING
}, {
name: 'dictionary',
type: types.DICTIONARY,
var callArgs = args.dictionary || {};
callArgs.uriPath = args.uriPath;
callArgs.resourceTypes = args.resourceTypes;
+ callArgs.resourceInterfaces = args.resourceInterfaces;
var result = native.callSync('IotconServer_createResource', callArgs);
properties |= (observable.is<bool>() ? observable.get<bool>() : false) ? IOTCON_RESOURCE_OBSERVABLE : IOTCON_RESOURCE_NO_PROPERTY;
const auto& discoverable = IotconUtils::GetArg(args, kIsDiscoverable);
- properties |= (discoverable.is<bool>() ? discoverable.get<bool>() : false) ? IOTCON_RESOURCE_DISCOVERABLE : IOTCON_RESOURCE_NO_PROPERTY;
+ properties |= (discoverable.is<bool>() ? discoverable.get<bool>() : true) ? IOTCON_RESOURCE_DISCOVERABLE : IOTCON_RESOURCE_NO_PROPERTY;
const auto& active = IotconUtils::GetArg(args, kIsActive);
properties |= (active.is<bool>() ? active.get<bool>() : false) ? IOTCON_RESOURCE_ACTIVE : IOTCON_RESOURCE_NO_PROPERTY;
if (!result) {
LogAndReturnTizenError(result, ("iotcon_request_get_observe_type() failed"));
}
- out->insert(std::make_pair(kRequestType, picojson::value{FromObserveType(observe_type)}));
+ out->insert(std::make_pair(kObserveType, picojson::value{FromObserveType(observe_type)}));
}
} else {
LoggerW("Request handle is null, ignoring");