@iotize/tap
Version:
IoTize Device client for Javascript
2,229 lines • 93.7 kB
JavaScript
import { SERVICE_CALLS } from './service-calls';
import { AbstractService } from '@iotize/tap';
export class InterfaceService extends AbstractService {
constructor() {
super(...arguments);
this.resources = SERVICE_CALLS;
}
/**
* Login
*
* LWM2M path: /1024//0
*
* @tapVersion(">=1.0")
* @param credential input
* @return
*/
login(
/*
* Username/password credentials
*/
credential) {
return this.serviceCallRunner.execute(this.loginCall(credential));
}
/**
*
*
* LWM2M path: /1024//0
*
* @tapVersion(">=1.0")
* @param credential input
* @return call options
*/
loginCall(
/*
* Username/password credentials
*/
credential) {
const callOptions = Object.assign({}, this.resources.login);
callOptions.body = credential;
return callOptions;
}
/**
* Login
*
* LWM2M path: /1024//0
*
* @tapVersion(">=1.0")
* @param credential input
* @return
*/
loginWithHash(
/*
*
*/
credential) {
return this.serviceCallRunner.execute(this.loginWithHashCall(credential));
}
/**
*
*
* LWM2M path: /1024//0
*
* @tapVersion(">=1.0")
* @param credential input
* @return call options
*/
loginWithHashCall(
/*
*
*/
credential) {
const callOptions = Object.assign({}, this.resources.loginWithHash);
callOptions.body = credential;
return callOptions;
}
/**
* Logout
*
* LWM2M path: /1024//1
*
* @tapVersion(">=1.0")
* @return
*/
logout() {
return this.serviceCallRunner.execute(this.logoutCall());
}
/**
*
*
* LWM2M path: /1024//1
*
* @tapVersion(">=1.0")
* @return call options
*/
logoutCall() {
const callOptions = Object.assign({}, this.resources.logout);
return callOptions;
}
/**
* Get current profile id
*
* LWM2M path: /1024//2
*
* @tapVersion(">=1.0")
* @return
*/
getCurrentProfileId() {
return this.serviceCallRunner.execute(this.getCurrentProfileIdCall());
}
/**
*
*
* LWM2M path: /1024//2
*
* @tapVersion(">=1.0")
* @return call options
*/
getCurrentProfileIdCall() {
const callOptions = Object.assign({}, this.resources.getCurrentProfileId);
return callOptions;
}
/**
* Get current host protocol
*
* LWM2M path: /1024//3
*
* @tapVersion(">=1.0")
* @return
*/
getCurrentHostProtocol() {
return this.serviceCallRunner.execute(this.getCurrentHostProtocolCall());
}
/**
*
*
* LWM2M path: /1024//3
*
* @tapVersion(">=1.0")
* @return call options
*/
getCurrentHostProtocolCall() {
const callOptions = Object.assign({}, this.resources.getCurrentHostProtocol);
return callOptions;
}
/**
* Write current host protocol
*
* LWM2M path: /1024//3
*
* @tapVersion(">=1.0")
* @param hostProtocol input
* @return
*/
putCurrentHostProtocol(
/*
*
*/
hostProtocol) {
return this.serviceCallRunner.execute(this.putCurrentHostProtocolCall(hostProtocol));
}
/**
*
*
* LWM2M path: /1024//3
*
* @tapVersion(">=1.0")
* @param hostProtocol input
* @return call options
*/
putCurrentHostProtocolCall(
/*
*
*/
hostProtocol) {
const callOptions = Object.assign({}, this.resources.putCurrentHostProtocol);
callOptions.body = hostProtocol;
return callOptions;
}
/**
* Get UID value
*
* LWM2M path: /1024//5
*
* @tapVersion(">=1.0")
* @return
*/
getUID() {
return this.serviceCallRunner.execute(this.getUIDCall());
}
/**
*
*
* LWM2M path: /1024//5
*
* @tapVersion(">=1.0")
* @return call options
*/
getUIDCall() {
const callOptions = Object.assign({}, this.resources.getUID);
return callOptions;
}
/**
* Administrator login with UID.
*
* LWM2M path: /1024//5
*
* @tapVersion(">=1.0")
* @param uid input
* @return
*/
loginWithUID(
/*
*
*/
uid) {
return this.serviceCallRunner.execute(this.loginWithUIDCall(uid));
}
/**
*
*
* LWM2M path: /1024//5
*
* @tapVersion(">=1.0")
* @param uid input
* @return call options
*/
loginWithUIDCall(
/*
*
*/
uid) {
const callOptions = Object.assign({}, this.resources.loginWithUID);
callOptions.body = uid;
return callOptions;
}
/**
* Keep alive.
*
* LWM2M path: /1024//4
*
* @tapVersion(">=1.0")
* @return
*/
keepAlive() {
return this.serviceCallRunner.execute(this.keepAliveCall());
}
/**
*
*
* LWM2M path: /1024//4
*
* @tapVersion(">=1.0")
* @return call options
*/
keepAliveCall() {
const callOptions = Object.assign({}, this.resources.keepAlive);
return callOptions;
}
/**
* Keep alive.
*
* LWM2M path: /1024//4
*
* @tapVersion(">=1.0")
* @return
*/
postKeepAlive() {
return this.serviceCallRunner.execute(this.postKeepAliveCall());
}
/**
*
*
* LWM2M path: /1024//4
*
* @tapVersion(">=1.0")
* @return call options
*/
postKeepAliveCall() {
const callOptions = Object.assign({}, this.resources.postKeepAlive);
return callOptions;
}
/**
* Get lock infos
*
* LWM2M path: /1024//6
*
* @tapVersion(">=1.0")
* @return
*/
getSecurityOptions() {
return this.serviceCallRunner.execute(this.getSecurityOptionsCall());
}
/**
*
*
* LWM2M path: /1024//6
*
* @tapVersion(">=1.0")
* @return call options
*/
getSecurityOptionsCall() {
const callOptions = Object.assign({}, this.resources.getSecurityOptions);
return callOptions;
}
/**
* Put lock infos
*
* LWM2M path: /1024//6
*
* @tapVersion(">=1.0")
* @param infos input
* @return
*/
putSecurityOptions(
/*
* lock informations
*/
infos) {
return this.serviceCallRunner.execute(this.putSecurityOptionsCall(infos));
}
/**
*
*
* LWM2M path: /1024//6
*
* @tapVersion(">=1.0")
* @param infos input
* @return call options
*/
putSecurityOptionsCall(
/*
* lock informations
*/
infos) {
const callOptions = Object.assign({}, this.resources.putSecurityOptions);
callOptions.body = infos;
return callOptions;
}
/**
* Get current group id
*
* LWM2M path: /1024//7
*
* @tapVersion(">=1.0")
* @return
*/
getCurrentGroupId() {
return this.serviceCallRunner.execute(this.getCurrentGroupIdCall());
}
/**
*
*
* LWM2M path: /1024//7
*
* @tapVersion(">=1.0")
* @return call options
*/
getCurrentGroupIdCall() {
const callOptions = Object.assign({}, this.resources.getCurrentGroupId);
return callOptions;
}
/**
* Get bundle Id for SWD Direct
*
* LWM2M path: /1024//100
*
* @tapVersion(">=1.23")
* @return
*/
getBundleIdSwdDirectAccess() {
return this.serviceCallRunner.execute(this.getBundleIdSwdDirectAccessCall());
}
/**
*
*
* LWM2M path: /1024//100
*
* @tapVersion(">=1.23")
* @return call options
*/
getBundleIdSwdDirectAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdSwdDirectAccess);
return callOptions;
}
/**
* Set bundle Id for SWD Direct
*
* LWM2M path: /1024//100
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return
*/
putBundleIdSwdDirectAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdSwdDirectAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//100
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return call options
*/
putBundleIdSwdDirectAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdSwdDirectAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for Serial Direct
*
* LWM2M path: /1024//101
*
* @tapVersion(">=1.23")
* @return
*/
getBundleIdSerialAccess() {
return this.serviceCallRunner.execute(this.getBundleIdSerialAccessCall());
}
/**
*
*
* LWM2M path: /1024//101
*
* @tapVersion(">=1.23")
* @return call options
*/
getBundleIdSerialAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdSerialAccess);
return callOptions;
}
/**
* Set bundle Id for Serial Direct
*
* LWM2M path: /1024//101
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return
*/
putBundleIdSerialAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdSerialAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//101
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return call options
*/
putBundleIdSerialAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdSerialAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for Modbus Direct
*
* LWM2M path: /1024//102
*
* @tapVersion(">=1.23")
* @return
*/
getBundleIdModbusDirectAccess() {
return this.serviceCallRunner.execute(this.getBundleIdModbusDirectAccessCall());
}
/**
*
*
* LWM2M path: /1024//102
*
* @tapVersion(">=1.23")
* @return call options
*/
getBundleIdModbusDirectAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdModbusDirectAccess);
return callOptions;
}
/**
* Set bundle Id for Modbus Direct
*
* LWM2M path: /1024//102
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return
*/
putBundleIdModbusDirectAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdModbusDirectAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//102
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return call options
*/
putBundleIdModbusDirectAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdModbusDirectAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for TapNPass Control
*
* LWM2M path: /1024//103
*
* @tapVersion(">=1.23")
* @return
*/
getBundleIdTapnpassControlAccess() {
return this.serviceCallRunner.execute(this.getBundleIdTapnpassControlAccessCall());
}
/**
*
*
* LWM2M path: /1024//103
*
* @tapVersion(">=1.23")
* @return call options
*/
getBundleIdTapnpassControlAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdTapnpassControlAccess);
return callOptions;
}
/**
* Set bundle Id for TapNPass Control
*
* LWM2M path: /1024//103
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return
*/
putBundleIdTapnpassControlAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdTapnpassControlAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//103
*
* @tapVersion(">=1.23")
* @param bundleId input
* @return call options
*/
putBundleIdTapnpassControlAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdTapnpassControlAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for Firmware Update
*
* LWM2M path: /1024//104
*
* @tapVersion(">=1.35")
* @return
*/
getBundleIdFirmwareUpdateAccess() {
return this.serviceCallRunner.execute(this.getBundleIdFirmwareUpdateAccessCall());
}
/**
*
*
* LWM2M path: /1024//104
*
* @tapVersion(">=1.35")
* @return call options
*/
getBundleIdFirmwareUpdateAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdFirmwareUpdateAccess);
return callOptions;
}
/**
* Set bundle Id for Firmware Update
*
* LWM2M path: /1024//104
*
* @tapVersion(">=1.35")
* @param bundleId input
* @return
*/
putBundleIdFirmwareUpdateAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdFirmwareUpdateAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//104
*
* @tapVersion(">=1.35")
* @param bundleId input
* @return call options
*/
putBundleIdFirmwareUpdateAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdFirmwareUpdateAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for MQTT IDs
*
* LWM2M path: /1024//105
*
* @tapVersion(">=1.35")
* @return
*/
getBundleIdMqttIdsAccess() {
return this.serviceCallRunner.execute(this.getBundleIdMqttIdsAccessCall());
}
/**
*
*
* LWM2M path: /1024//105
*
* @tapVersion(">=1.35")
* @return call options
*/
getBundleIdMqttIdsAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdMqttIdsAccess);
return callOptions;
}
/**
* Set bundle Id for MQTT IDs
*
* LWM2M path: /1024//105
*
* @tapVersion(">=1.35")
* @param bundleId input
* @return
*/
putBundleIdMqttIdsAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdMqttIdsAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//105
*
* @tapVersion(">=1.35")
* @param bundleId input
* @return call options
*/
putBundleIdMqttIdsAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdMqttIdsAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for Variable Config
*
* LWM2M path: /1024//106
*
* @tapVersion(">=2.11")
* @return
*/
getBundleIdVariableConfigAccess() {
return this.serviceCallRunner.execute(this.getBundleIdVariableConfigAccessCall());
}
/**
*
*
* LWM2M path: /1024//106
*
* @tapVersion(">=2.11")
* @return call options
*/
getBundleIdVariableConfigAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdVariableConfigAccess);
return callOptions;
}
/**
* Set bundle Id for Variable Config
*
* LWM2M path: /1024//106
*
* @tapVersion(">=2.11")
* @param bundleId input
* @return
*/
putBundleIdVariableConfigAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdVariableConfigAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//106
*
* @tapVersion(">=2.11")
* @param bundleId input
* @return call options
*/
putBundleIdVariableConfigAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdVariableConfigAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get bundle Id for File System
*
* LWM2M path: /1024//107
*
* @tapVersion(">=2.13")
* @return
*/
getBundleIdFileSystemAccess() {
return this.serviceCallRunner.execute(this.getBundleIdFileSystemAccessCall());
}
/**
*
*
* LWM2M path: /1024//107
*
* @tapVersion(">=2.13")
* @return call options
*/
getBundleIdFileSystemAccessCall() {
const callOptions = Object.assign({}, this.resources.getBundleIdFileSystemAccess);
return callOptions;
}
/**
* Set bundle Id for File System
*
* LWM2M path: /1024//107
*
* @tapVersion(">=2.13")
* @param bundleId input
* @return
*/
putBundleIdFileSystemAccess(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putBundleIdFileSystemAccessCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//107
*
* @tapVersion(">=2.13")
* @param bundleId input
* @return call options
*/
putBundleIdFileSystemAccessCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putBundleIdFileSystemAccess);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get config format version
*
* LWM2M path: /1024//8
*
* @tapVersion(">=1.0")
* @return
*/
getConfigFormatVersion() {
return this.serviceCallRunner.execute(this.getConfigFormatVersionCall());
}
/**
*
*
* LWM2M path: /1024//8
*
* @tapVersion(">=1.0")
* @return call options
*/
getConfigFormatVersionCall() {
const callOptions = Object.assign({}, this.resources.getConfigFormatVersion);
return callOptions;
}
/**
* Set config format version
*
* LWM2M path: /1024//8
*
* @tapVersion(">=1.0")
* @param configFormat input
* @return
*/
putConfigFormatVersion(
/*
*
*/
configFormat) {
return this.serviceCallRunner.execute(this.putConfigFormatVersionCall(configFormat));
}
/**
*
*
* LWM2M path: /1024//8
*
* @tapVersion(">=1.0")
* @param configFormat input
* @return call options
*/
putConfigFormatVersionCall(
/*
*
*/
configFormat) {
const callOptions = Object.assign({}, this.resources.putConfigFormatVersion);
callOptions.body = configFormat;
return callOptions;
}
/**
* Get application name
*
* LWM2M path: /1024//9
*
* @tapVersion(">=1.0")
* @return
*/
getAppName() {
return this.serviceCallRunner.execute(this.getAppNameCall());
}
/**
*
*
* LWM2M path: /1024//9
*
* @tapVersion(">=1.0")
* @return call options
*/
getAppNameCall() {
const callOptions = Object.assign({}, this.resources.getAppName);
return callOptions;
}
/**
* Set application name
*
* LWM2M path: /1024//9
*
* @tapVersion(">=1.0")
* @param appName input
* @return
*/
putAppName(
/*
*
*/
appName) {
return this.serviceCallRunner.execute(this.putAppNameCall(appName));
}
/**
*
*
* LWM2M path: /1024//9
*
* @tapVersion(">=1.0")
* @param appName input
* @return call options
*/
putAppNameCall(
/*
*
*/
appName) {
const callOptions = Object.assign({}, this.resources.putAppName);
callOptions.body = appName;
return callOptions;
}
/**
* Get config version
*
* LWM2M path: /1024//10
*
* @tapVersion(">=1.0")
* @return
*/
getConfigVersion() {
return this.serviceCallRunner.execute(this.getConfigVersionCall());
}
/**
*
*
* LWM2M path: /1024//10
*
* @tapVersion(">=1.0")
* @return call options
*/
getConfigVersionCall() {
const callOptions = Object.assign({}, this.resources.getConfigVersion);
return callOptions;
}
/**
* Set config version
*
* LWM2M path: /1024//10
*
* @tapVersion(">=1.0")
* @param version input
* @return
*/
putConfigVersion(
/*
*
*/
version) {
return this.serviceCallRunner.execute(this.putConfigVersionCall(version));
}
/**
*
*
* LWM2M path: /1024//10
*
* @tapVersion(">=1.0")
* @param version input
* @return call options
*/
putConfigVersionCall(
/*
*
*/
version) {
const callOptions = Object.assign({}, this.resources.putConfigVersion);
callOptions.body = version;
return callOptions;
}
/**
* Apply the new configuration on the Tap
*
* LWM2M path: /1024//10
*
* @tapVersion(">=1.0")
* @return
*/
reloadConfig() {
return this.serviceCallRunner.execute(this.reloadConfigCall());
}
/**
*
*
* LWM2M path: /1024//10
*
* @tapVersion(">=1.0")
* @return call options
*/
reloadConfigCall() {
const callOptions = Object.assign({}, this.resources.reloadConfig);
return callOptions;
}
/**
* Get app path
*
* LWM2M path: /1024//11
*
* @tapVersion(">=1.0")
* @return
*/
getAppPath() {
return this.serviceCallRunner.execute(this.getAppPathCall());
}
/**
*
*
* LWM2M path: /1024//11
*
* @tapVersion(">=1.0")
* @return call options
*/
getAppPathCall() {
const callOptions = Object.assign({}, this.resources.getAppPath);
return callOptions;
}
/**
* Set app path
*
* LWM2M path: /1024//11
*
* @tapVersion(">=1.0")
* @param value input
* @return
*/
putAppPath(
/*
*
*/
value) {
return this.serviceCallRunner.execute(this.putAppPathCall(value));
}
/**
*
*
* LWM2M path: /1024//11
*
* @tapVersion(">=1.0")
* @param value input
* @return call options
*/
putAppPathCall(
/*
*
*/
value) {
const callOptions = Object.assign({}, this.resources.putAppPath);
callOptions.body = value;
return callOptions;
}
/**
* Set app path
*
* LWM2M path: /1024//11
*
* @tapVersion(">=1.0")
* @param value input
* @return
*/
postAppPath(
/*
*
*/
value) {
return this.serviceCallRunner.execute(this.postAppPathCall(value));
}
/**
*
*
* LWM2M path: /1024//11
*
* @tapVersion(">=1.0")
* @param value input
* @return call options
*/
postAppPathCall(
/*
*
*/
value) {
const callOptions = Object.assign({}, this.resources.postAppPath);
callOptions.body = value;
return callOptions;
}
/**
* Check if nfc paring is mandatory
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @return
*/
getNfcPairingMode() {
return this.serviceCallRunner.execute(this.getNfcPairingModeCall());
}
/**
*
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @return call options
*/
getNfcPairingModeCall() {
const callOptions = Object.assign({}, this.resources.getNfcPairingMode);
return callOptions;
}
/**
* Change wether nfc pairing is mandatory.
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @param mode input
* @return
*/
putNfcPairingMode(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putNfcPairingModeCall(mode));
}
/**
*
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @param mode input
* @return call options
*/
putNfcPairingModeCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putNfcPairingMode);
callOptions.body = mode;
return callOptions;
}
/**
* Get pairing options
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @return
*/
getPairingOptions() {
return this.serviceCallRunner.execute(this.getPairingOptionsCall());
}
/**
*
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @return call options
*/
getPairingOptionsCall() {
const callOptions = Object.assign({}, this.resources.getPairingOptions);
return callOptions;
}
/**
* Set pairing options (temporary)
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @param options input
* @return
*/
postPairingOptions(
/*
*
*/
options) {
return this.serviceCallRunner.execute(this.postPairingOptionsCall(options));
}
/**
*
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @param options input
* @return call options
*/
postPairingOptionsCall(
/*
*
*/
options) {
const callOptions = Object.assign({}, this.resources.postPairingOptions);
callOptions.body = options;
return callOptions;
}
/**
* Write pairing options
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @param options input
* @return
*/
putPairingOptions(
/*
*
*/
options) {
return this.serviceCallRunner.execute(this.putPairingOptionsCall(options));
}
/**
*
*
* LWM2M path: /1024//13
*
* @tapVersion(">=1.0")
* @param options input
* @return call options
*/
putPairingOptionsCall(
/*
*
*/
options) {
const callOptions = Object.assign({}, this.resources.putPairingOptions);
callOptions.body = options;
return callOptions;
}
/**
* Get power optimization level
*
* LWM2M path: /1024//14
*
* @tapVersion(">=1.0")
* @return
*/
getPowerOptimisationLevel() {
return this.serviceCallRunner.execute(this.getPowerOptimisationLevelCall());
}
/**
*
*
* LWM2M path: /1024//14
*
* @tapVersion(">=1.0")
* @return call options
*/
getPowerOptimisationLevelCall() {
const callOptions = Object.assign({}, this.resources.getPowerOptimisationLevel);
return callOptions;
}
/**
* Write power optimization level
*
* LWM2M path: /1024//14
*
* @tapVersion(">=1.0")
* @param mode input
* @return
*/
putPowerOptimisationLevel(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putPowerOptimisationLevelCall(mode));
}
/**
*
*
* LWM2M path: /1024//14
*
* @tapVersion(">=1.0")
* @param mode input
* @return call options
*/
putPowerOptimisationLevelCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putPowerOptimisationLevel);
callOptions.body = mode;
return callOptions;
}
/**
* Get Tap CPU frequency options
*
* LWM2M path: /1024//141
*
* @tapVersion(">=2.15")
* @return
*/
getCpuFrequencyOptions() {
return this.serviceCallRunner.execute(this.getCpuFrequencyOptionsCall());
}
/**
*
*
* LWM2M path: /1024//141
*
* @tapVersion(">=2.15")
* @return call options
*/
getCpuFrequencyOptionsCall() {
const callOptions = Object.assign({}, this.resources.getCpuFrequencyOptions);
return callOptions;
}
/**
* Write Tap CPU frequency setting
*
* LWM2M path: /1024//141
*
* @tapVersion(">=2.15")
* @param mode input
* @return
*/
putCpuFrequencyOptions(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putCpuFrequencyOptionsCall(mode));
}
/**
*
*
* LWM2M path: /1024//141
*
* @tapVersion(">=2.15")
* @param mode input
* @return call options
*/
putCpuFrequencyOptionsCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putCpuFrequencyOptions);
callOptions.body = mode;
return callOptions;
}
/**
* Get power optimization options
*
* LWM2M path: /1024//142
*
* @tapVersion(">=2.15")
* @return
*/
getPowerOptimisationOptions() {
return this.serviceCallRunner.execute(this.getPowerOptimisationOptionsCall());
}
/**
*
*
* LWM2M path: /1024//142
*
* @tapVersion(">=2.15")
* @return call options
*/
getPowerOptimisationOptionsCall() {
const callOptions = Object.assign({}, this.resources.getPowerOptimisationOptions);
return callOptions;
}
/**
* Write power optimization options
*
* LWM2M path: /1024//142
*
* @tapVersion(">=2.15")
* @param mode input
* @return
*/
putPowerOptimisationOptions(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putPowerOptimisationOptionsCall(mode));
}
/**
*
*
* LWM2M path: /1024//142
*
* @tapVersion(">=2.15")
* @param mode input
* @return call options
*/
putPowerOptimisationOptionsCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putPowerOptimisationOptions);
callOptions.body = mode;
return callOptions;
}
/**
* Get Maximum duration of the low power state
*
* LWM2M path: /1024//33
*
* @tapVersion(">=1.0")
* @return
*/
getMaxLowPowerTime() {
return this.serviceCallRunner.execute(this.getMaxLowPowerTimeCall());
}
/**
*
*
* LWM2M path: /1024//33
*
* @tapVersion(">=1.0")
* @return call options
*/
getMaxLowPowerTimeCall() {
const callOptions = Object.assign({}, this.resources.getMaxLowPowerTime);
return callOptions;
}
/**
* Set Maximum duration of the low power state
*
* LWM2M path: /1024//33
*
* @tapVersion(">=1.0")
* @param key input
* @return
*/
putMaxLowPowerTime(
/*
*
*/
key) {
return this.serviceCallRunner.execute(this.putMaxLowPowerTimeCall(key));
}
/**
*
*
* LWM2M path: /1024//33
*
* @tapVersion(">=1.0")
* @param key input
* @return call options
*/
putMaxLowPowerTimeCall(
/*
*
*/
key) {
const callOptions = Object.assign({}, this.resources.putMaxLowPowerTime);
callOptions.body = key;
return callOptions;
}
/**
* Read auto reboot timeout value
*
* LWM2M path: /1024//123
*
* @tapVersion(">=2.11")
* @return
*/
getAutoRebootTimeout() {
return this.serviceCallRunner.execute(this.getAutoRebootTimeoutCall());
}
/**
*
*
* LWM2M path: /1024//123
*
* @tapVersion(">=2.11")
* @return call options
*/
getAutoRebootTimeoutCall() {
const callOptions = Object.assign({}, this.resources.getAutoRebootTimeout);
return callOptions;
}
/**
* Write auto reboot timeout value
*
* LWM2M path: /1024//123
*
* @tapVersion(">=2.11")
* @param bundleId input
* @return
*/
putAutoRebootTimeout(
/*
*
*/
bundleId) {
return this.serviceCallRunner.execute(this.putAutoRebootTimeoutCall(bundleId));
}
/**
*
*
* LWM2M path: /1024//123
*
* @tapVersion(">=2.11")
* @param bundleId input
* @return call options
*/
putAutoRebootTimeoutCall(
/*
*
*/
bundleId) {
const callOptions = Object.assign({}, this.resources.putAutoRebootTimeout);
callOptions.body = bundleId;
return callOptions;
}
/**
* Get authorized host protocols
*
* LWM2M path: /1024//17
*
* @tapVersion(">=1.0")
* @return
*/
getAuthorizedHostProtocol() {
return this.serviceCallRunner.execute(this.getAuthorizedHostProtocolCall());
}
/**
*
*
* LWM2M path: /1024//17
*
* @tapVersion(">=1.0")
* @return call options
*/
getAuthorizedHostProtocolCall() {
const callOptions = Object.assign({}, this.resources.getAuthorizedHostProtocol);
return callOptions;
}
/**
* Write authorized host protocols
*
* LWM2M path: /1024//17
*
* @tapVersion(">=1.0")
* @param mode input
* @return
*/
putAuthorizedHostProtocol(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putAuthorizedHostProtocolCall(mode));
}
/**
*
*
* LWM2M path: /1024//17
*
* @tapVersion(">=1.0")
* @param mode input
* @return call options
*/
putAuthorizedHostProtocolCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putAuthorizedHostProtocol);
callOptions.body = mode;
return callOptions;
}
/**
* Get config format firmware version
*
* LWM2M path: /1024//18
*
* @tapVersion(">=1.0")
* @return
*/
getConfigFormatFirmwareVersion() {
return this.serviceCallRunner.execute(this.getConfigFormatFirmwareVersionCall());
}
/**
*
*
* LWM2M path: /1024//18
*
* @tapVersion(">=1.0")
* @return call options
*/
getConfigFormatFirmwareVersionCall() {
const callOptions = Object.assign({}, this.resources.getConfigFormatFirmwareVersion);
return callOptions;
}
/**
* Get configured universal link value
*
* LWM2M path: /1024//19
*
* @tapVersion(">=1.0")
* @return
*/
getUniversalLink() {
return this.serviceCallRunner.execute(this.getUniversalLinkCall());
}
/**
*
*
* LWM2M path: /1024//19
*
* @tapVersion(">=1.0")
* @return call options
*/
getUniversalLinkCall() {
const callOptions = Object.assign({}, this.resources.getUniversalLink);
return callOptions;
}
/**
* Write universal link value
*
* LWM2M path: /1024//19
*
* @tapVersion(">=1.0")
* @param url input
* @return
*/
putUniversalLink(
/*
*
*/
url) {
return this.serviceCallRunner.execute(this.putUniversalLinkCall(url));
}
/**
*
*
* LWM2M path: /1024//19
*
* @tapVersion(">=1.0")
* @param url input
* @return call options
*/
putUniversalLinkCall(
/*
*
*/
url) {
const callOptions = Object.assign({}, this.resources.putUniversalLink);
callOptions.body = url;
return callOptions;
}
/**
* Set universal link value
*
* LWM2M path: /1024//19
*
* @tapVersion(">=1.0")
* @param value input
* @return
*/
postUniversalLink(
/*
*
*/
value) {
return this.serviceCallRunner.execute(this.postUniversalLinkCall(value));
}
/**
*
*
* LWM2M path: /1024//19
*
* @tapVersion(">=1.0")
* @param value input
* @return call options
*/
postUniversalLinkCall(
/*
*
*/
value) {
const callOptions = Object.assign({}, this.resources.postUniversalLink);
callOptions.body = value;
return callOptions;
}
/**
* List instances of another object
*
* LWM2M path: /1024//140
*
* @tapVersion(">=2.13")
* @param objectId input
* @return
*/
listObjectInstances(
/*
*
*/
objectId) {
return this.serviceCallRunner.execute(this.listObjectInstancesCall(objectId));
}
/**
*
*
* LWM2M path: /1024//140
*
* @tapVersion(">=2.13")
* @param objectId input
* @return call options
*/
listObjectInstancesCall(
/*
*
*/
objectId) {
const callOptions = Object.assign({}, this.resources.listObjectInstances);
callOptions.body = objectId;
return callOptions;
}
/**
* Get available host protocols
*
* LWM2M path: /1024//21
*
* @tapVersion(">=1.0")
* @return
*/
getAvailableHostProtocols() {
return this.serviceCallRunner.execute(this.getAvailableHostProtocolsCall());
}
/**
*
*
* LWM2M path: /1024//21
*
* @tapVersion(">=1.0")
* @return call options
*/
getAvailableHostProtocolsCall() {
const callOptions = Object.assign({}, this.resources.getAvailableHostProtocols);
return callOptions;
}
/**
* Get currently disabled service list
*
* LWM2M path: /1024//75
*
* @tapVersion(">=1.107")
* @return
*/
getDisabledServices() {
return this.serviceCallRunner.execute(this.getDisabledServicesCall());
}
/**
*
*
* LWM2M path: /1024//75
*
* @tapVersion(">=1.107")
* @return call options
*/
getDisabledServicesCall() {
const callOptions = Object.assign({}, this.resources.getDisabledServices);
return callOptions;
}
/**
* Enable/disable execution of services
*
* LWM2M path: /1024//75
*
* @tapVersion(">=1.107")
* @param serviceCodes input
* @return
*/
postDisabledServices(
/*
*
*/
serviceCodes) {
return this.serviceCallRunner.execute(this.postDisabledServicesCall(serviceCodes));
}
/**
*
*
* LWM2M path: /1024//75
*
* @tapVersion(">=1.107")
* @param serviceCodes input
* @return call options
*/
postDisabledServicesCall(
/*
*
*/
serviceCodes) {
const callOptions = Object.assign({}, this.resources.postDisabledServices);
callOptions.body = serviceCodes;
return callOptions;
}
/**
* Get network options
*
* LWM2M path: /1024//127
*
* @tapVersion(">=2.13")
* @return
*/
getNetworkOptions() {
return this.serviceCallRunner.execute(this.getNetworkOptionsCall());
}
/**
*
*
* LWM2M path: /1024//127
*
* @tapVersion(">=2.13")
* @return call options
*/
getNetworkOptionsCall() {
const callOptions = Object.assign({}, this.resources.getNetworkOptions);
return callOptions;
}
/**
* Write network options
*
* LWM2M path: /1024//127
*
* @tapVersion(">=2.13")
* @param mode input
* @return
*/
putNetworkOptions(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putNetworkOptionsCall(mode));
}
/**
*
*
* LWM2M path: /1024//127
*
* @tapVersion(">=2.13")
* @param mode input
* @return call options
*/
putNetworkOptionsCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putNetworkOptions);
callOptions.body = mode;
return callOptions;
}
/**
* Get Radio Mix enable status
*
* LWM2M path: /1024//132
*
* @tapVersion(">=2.13")
* @return
*/
getRadioMixEnabled() {
return this.serviceCallRunner.execute(this.getRadioMixEnabledCall());
}
/**
*
*
* LWM2M path: /1024//132
*
* @tapVersion(">=2.13")
* @return call options
*/
getRadioMixEnabledCall() {
const callOptions = Object.assign({}, this.resources.getRadioMixEnabled);
return callOptions;
}
/**
* Write LTE enable status
*
* LWM2M path: /1024//132
*
* @tapVersion(">=2.13")
* @param mode input
* @return
*/
putRadioMixEnabled(
/*
*
*/
mode) {
return this.serviceCallRunner.execute(this.putRadioMixEnabledCall(mode));
}
/**
*
*
* LWM2M path: /1024//132
*
* @tapVersion(">=2.13")
* @param mode input
* @return call options
*/
putRadioMixEnabledCall(
/*
*
*/
mode) {
const callOptions = Object.assign({}, this.resources.putRadioMixEnabled);
callOptions.body = mode;
return callOptions;
}
/**
* Get NFC connection priority over other protocols
*
* LWM2M path: /1024//24
*
* @tapVersion(">=1.85")
* @return
*/
getNfcConnectionPriority() {
return this.serviceCallRunner.execute(this.getNfcConnectionPriorityCall());
}
/**
*
*
* LWM2M path: /1024//24
*
* @tapVersion(">=1.85")
* @return call options
*/
getNfcConnectionPriorityCall() {
const callOptions = Object.assign({}, this.resources.getNfcConnectionPriority);
return callOptions;
}
/**
* Set NFC connection priority over other protocols (until reboot)
*
* LWM2M path: /1024//24
*
* @tapVersion(">=1.85")
* @param key input
* @return
*/
postNfcConnectionPriority(
/*
*
*/
key) {
return this.serviceCallRunner.execute(this.postNfcConnectionPriorityCall(key));
}
/**
*
*
* LWM2M path: /1024//24
*
* @tapVersion(">=1.85")
* @param key input
* @return call options
*/
postNfcConnectionPriorityCall(
/*
*
*/
key) {
const callOptions = Object.assign({}, this.resources.postNfcConnectionPriority);
callOptions.body = key;
return callOptions;
}
/**
* Write in configuration NFC connection priority over other protocols
*
* LWM2M path: /1024//24
*
* @tapVersion(">=1.85")
* @param key input
* @return
*/
putNfcConnectionPriority(
/*
*
*/
key) {
return this.serviceCallRunner.execute(this.putNfcConnectionPriorityCall(key));
}
/**
*
*
* LWM2M path: /1024//24
*
* @tapVersion(">=1.85")
* @param key input
* @return call options
*/
putNfcConnectionPriorityCall(
/*
*
*/
key) {
const callOptions = Object.assign({}, this.resources.putNfcConnectionPriority);
callOptions.body = key;
return callOptions;
}
/**
* Get NFC autolog profile id
*
* LWM2M path: /1024//43
*
* @tapVersion(">=1.55")
* @return
*/
getNfcAutologProfileId() {
return this.serviceCallRunner.execute(this.getNfcAutologProfileIdCall());
}
/**
*
*
* LWM2M path: /1024//43
*
* @tapVersion(">=1.55")
* @return call options
*/
getNfcAutologProfileIdCall() {
const callOptions = Object.assign({}, this.resources.getNfcAutologProfileId);
return callOptions;
}
/**
* Write NFC autolog profile id
*
* LWM2M path: /1024//43
*
* @tapVersion(">=1.55")
* @param value input
* @return
*/
putNfcAutologProfileId(
/*
*
*/
value) {
return this.serviceCallRunner.execute(this.putNfcAutologProfileIdCall(value));
}
/**
*
*
* LWM2M path: /1024//43
*
* @tapVersion(">=1.55")
* @param value input
* @return call options
*/
putNfcAutologProfileIdCall(
/*
*
*/
value) {
const callOptions = Object.assign({}, this.resources.putNfcAutologProfileId);
callOptions.body = value;
return callOptions;
}
/**
* Get host inactivity period
*
* LWM2M path: /1024//34
*
* @tapVersion(">=1.0")
* @return
*/
getHostInactivityPeriod() {
return this.serviceCallRunner.execute(this.getHostInactivityPeriodCall());
}
/**
*
*
* LWM2M path: /1024//34
*
* @tapVersion(">=1.0")
* @return call options
*/
getHostInactivityPeriodCall() {
const callOptions = Object.assign({}, this.resources.getHostInactivityPeriod);
return callOptions;
}
/**
* Write host inactivity timeout
*
* LWM2M path: /1024//34
*
* @tapVersion(">=1.0")
* @param key input
* @return
*/
putHostInactivityPeriod(
/*
*
*/
key) {
return this.serviceCallRunner.execute(this.putHostInactivityPeriodCall(key));
}
/**
*
*
* LWM2M path: /1024//34
*
* @tapVersion(">=1.0")
* @param key input
* @return call options
*/
putHostInactivityPeriodCall(
/*
*
*/
key) {
const callOptions = Object.assign({}, this.resources.putHostInactivityPeriod);
callOptions.body = key;
return callOptions;
}
/**
* Get application data
*
* LWM2M path: /1024//36
*
* @tapVersion(">=1.0")
* @return
*/
getApplicationData() {
return this.serviceCallRunner.execute(this.getApplicationDataCall());
}
/**
*
*
* LWM2M path: /1024//36
*
* @tapVersion(">=1.0")
* @return call options
*/
getApplicationDataCall() {
const callOptions = Object.assign({}, this.resources.getApplicationData);
return callOptions;
}
/**
* Set application data
*
* LWM2M path: /1024//36
*
* @tapVersion(">=1.0")
* @param value input
* @return
*/
putApplicationData(
/*
*
*/
value) {
return this.serviceCallRunner.execute(this.putApplicationDataCall(value));
}
/**
*
*
* LWM2M path: /1024//36
*
* @tapVersion(">=1.0")
* @param value input
* @return call options
*/
putApplicationDataCall(
/*
*
*/
value) {
const callOptions = Object.assign({}, this.resources.putApplicationData);
callOptions.body = value;
return callOptions;
}
/**
* Change application data
*
* LWM2M path: /1024//36
*
* @tapVersion(">=1.0")
* @param value input
* @return
*/
postApplicationData(
/*
*
*/
value) {
return this.serviceCallRunner.execute(this.postApplicationDataCall(value));
}
/**
*
*
* LWM2M path: /1024//36
*
* @tapVersion(">=1.0")
* @param value input
* @return call options
*/
postApplicationDataCall(
/*
*
*/
value) {
const callOptions = Object.assign({}, this.resources.postApplicationData);
callOptions.body = value;
ret