/** * Generated file. Do not edit */ import { TapResponse } from '@iotize/tap'; import { AvailablePowerSource } from './models'; import { DeviceCpuFrequencyOptions } from './models'; import { AbstractService, ServiceCallType } from '@iotize/tap'; export declare class DeviceService extends AbstractService { resources: { getManufacturer: ServiceCallType; getFirmwareFlavor: ServiceCallType; getSerialNumber: ServiceCallType; getFirmwareVersion: ServiceCallType; reboot: ServiceCallType; factoryReset: ServiceCallType; getAvailablePowerSource: ServiceCallType; getPowerSourceVoltage: ServiceCallType; getMemoryFree: ServiceCallType; getLastErrorCode: ServiceCallType; postLastErrorCode: ServiceCallType; resetLastErrorCode: ServiceCallType; getCurrentTime: ServiceCallType; setCurrentTime: ServiceCallType; putCurrentTime: ServiceCallType; getJvmErrorCode: ServiceCallType; setJvmErrorCode: ServiceCallType; getInternalStatus: ServiceCallType; getCommunicationUid: ServiceCallType; getTemperature: ServiceCallType; getCpuFrequency: ServiceCallType; setCpuFrequency: ServiceCallType; activateStopMode: ServiceCallType; }; /** * Get manufacturer name * * LWM2M path: /3//0 * * @tapVersion(">=1.0") * @return */ getManufacturer(): Promise>; /** * * * LWM2M path: /3//0 * * @tapVersion(">=1.0") * @return call options */ getManufacturerCall(): ServiceCallType; /** * Get device firmware flavor name * * LWM2M path: /3//1 * * @tapVersion(">=1.0") * @return */ getFirmwareFlavor(): Promise>; /** * * * LWM2M path: /3//1 * * @tapVersion(">=1.0") * @return call options */ getFirmwareFlavorCall(): ServiceCallType; /** * Get device serial number * * LWM2M path: /3//2 * * @tapVersion(">=1.0") * @return */ getSerialNumber(): Promise>; /** * * * LWM2M path: /3//2 * * @tapVersion(">=1.0") * @return call options */ getSerialNumberCall(): ServiceCallType; /** * Get device firmware version * * LWM2M path: /3//3 * * @tapVersion(">=1.0") * @return */ getFirmwareVersion(): Promise>; /** * * * LWM2M path: /3//3 * * @tapVersion(">=1.0") * @return call options */ getFirmwareVersionCall(): ServiceCallType; /** * Reboot Tap device * * LWM2M path: /3//4 * * @tapVersion(">=1.0") * @return */ reboot(): Promise>; /** * * * LWM2M path: /3//4 * * @tapVersion(">=1.0") * @return call options */ rebootCall(): ServiceCallType; /** * Factory reset * * LWM2M path: /3//5 * * @tapVersion(">=1.0") * @return */ factoryReset(): Promise>; /** * * * LWM2M path: /3//5 * * @tapVersion(">=1.0") * @return call options */ factoryResetCall(): ServiceCallType; /** * Get available power sources * * LWM2M path: /3//6 * * @tapVersion(">=1.0") * @return */ getAvailablePowerSource(): Promise>; /** * * * LWM2M path: /3//6 * * @tapVersion(">=1.0") * @return call options */ getAvailablePowerSourceCall(): ServiceCallType; /** * Get power source voltage * * LWM2M path: /3//7 * * @tapVersion(">=1.0") * @return */ getPowerSourceVoltage(): Promise>; /** * * * LWM2M path: /3//7 * * @tapVersion(">=1.0") * @return call options */ getPowerSourceVoltageCall(): ServiceCallType; /** * Get device memory free * * LWM2M path: /3//10 * * @tapVersion(">=1.0") * @return */ getMemoryFree(): Promise>; /** * * * LWM2M path: /3//10 * * @tapVersion(">=1.0") * @return call options */ getMemoryFreeCall(): ServiceCallType; /** * Get device last error code * * LWM2M path: /3//11 * * @tapVersion(">=1.0") * @return */ getLastErrorCode(): Promise>; /** * * * LWM2M path: /3//11 * * @tapVersion(">=1.0") * @return call options */ getLastErrorCodeCall(): ServiceCallType; /** * Set device last error code * * LWM2M path: /3//11 * * @tapVersion(">=1.0") * @param errorcode input * @return */ postLastErrorCode(errorcode: number): Promise>; /** * * * LWM2M path: /3//11 * * @tapVersion(">=1.0") * @param errorcode input * @return call options */ postLastErrorCodeCall(errorcode: number): ServiceCallType; /** * Reset device last error code * * LWM2M path: /3//12 * * @tapVersion(">=1.0") * @return */ resetLastErrorCode(): Promise>; /** * * * LWM2M path: /3//12 * * @tapVersion(">=1.0") * @return call options */ resetLastErrorCodeCall(): ServiceCallType; /** * Get device current time * * LWM2M path: /3//13 * * @tapVersion(">=1.0") * @return */ getCurrentTime(): Promise>; /** * * * LWM2M path: /3//13 * * @tapVersion(">=1.0") * @return call options */ getCurrentTimeCall(): ServiceCallType; /** * Set device current time * * LWM2M path: /3//13 * * @tapVersion(">=1.0") * @param time input * @return */ setCurrentTime(time: number): Promise>; /** * * * LWM2M path: /3//13 * * @tapVersion(">=1.0") * @param time input * @return call options */ setCurrentTimeCall(time: number): ServiceCallType; /** * Put device current time (Will be removed in next major release version) * * LWM2M path: /3//13 * * @tapVersion(">=1.0") * @param time input * @return */ putCurrentTime(time: number): Promise>; /** * * * LWM2M path: /3//13 * * @tapVersion(">=1.0") * @param time input * @return call options */ putCurrentTimeCall(time: number): ServiceCallType; /** * Get jvm error code * * LWM2M path: /3//14 * * @tapVersion(">=1.0") * @return */ getJvmErrorCode(): Promise>; /** * * * LWM2M path: /3//14 * * @tapVersion(">=1.0") * @return call options */ getJvmErrorCodeCall(): ServiceCallType; /** * Set jvm error code * * LWM2M path: /3//14 * * @tapVersion(">=1.0") * @param code input * @return */ setJvmErrorCode(code: number): Promise>; /** * * * LWM2M path: /3//14 * * @tapVersion(">=1.0") * @param code input * @return call options */ setJvmErrorCodeCall(code: number): ServiceCallType; /** * Get device internal status * * LWM2M path: /3//15 * * @tapVersion(">=2.11") * @return */ getInternalStatus(): Promise>; /** * * * LWM2M path: /3//15 * * @tapVersion(">=2.11") * @return call options */ getInternalStatusCall(): ServiceCallType; /** * Get device com UID * * LWM2M path: /3//16 * * @tapVersion(">=2.29") * @return */ getCommunicationUid(): Promise>; /** * * * LWM2M path: /3//16 * * @tapVersion(">=2.29") * @return call options */ getCommunicationUidCall(): ServiceCallType; /** * Get device temperature * * LWM2M path: /3//17 * * @tapVersion(">=2.37") * @return */ getTemperature(): Promise>; /** * * * LWM2M path: /3//17 * * @tapVersion(">=2.37") * @return call options */ getTemperatureCall(): ServiceCallType; /** * Get current CPU frequency * * LWM2M path: /3//141 * * @tapVersion(">=2.37") * @return */ getCpuFrequency(): Promise>; /** * * * LWM2M path: /3//141 * * @tapVersion(">=2.37") * @return call options */ getCpuFrequencyCall(): ServiceCallType; /** * Set current CPU frequency * * LWM2M path: /3//141 * * @tapVersion(">=2.37") * @param mode input * @return */ setCpuFrequency(mode: DeviceCpuFrequencyOptions): Promise>; /** * * * LWM2M path: /3//141 * * @tapVersion(">=2.37") * @param mode input * @return call options */ setCpuFrequencyCall(mode: DeviceCpuFrequencyOptions): ServiceCallType; /** * Activate stop mode * * LWM2M path: /3//142 * * @tapVersion(">=2.37") * @param duration input * @return */ activateStopMode(duration: number): Promise>; /** * * * LWM2M path: /3//142 * * @tapVersion(">=2.37") * @param duration input * @return call options */ activateStopModeCall(duration: number): ServiceCallType; }