UNPKG

@iotize/device-client.js

Version:

IoTize Device client for Javascript

91 lines (90 loc) 3.17 kB
/** * This file has been generated * DO NOT EDIT, IT MAY BE OVERWRITTEN */ import { Client, Response, ApiConfig } from "../import-adapter"; import { AbstractService, ServiceCallType } from '../abstract-service'; import { FirmwareState } from '../../all-models'; import { CrcCheckBody } from '../../all-models'; export declare class FirmwareService extends AbstractService { constructor(client: Client, apiConfig: ApiConfig); resources: { [key: string]: ServiceCallType; }; /** * Get state * * LWM2M path: /5//3 * @deprecated * @tapVersion(">=1.0") * @return FirmwareState api call */ getState(): Promise<Response<FirmwareState>>; /** * Get state * * LWM2M path: /5//3 * @deprecated * @tapVersion(">=1.0") * @return call options */ getStateCall(): ServiceCallType; /** * Check CRC * Compare le CRC attendu au CRC de la zone référencée. Modifie le Update Result (resource /5//5) à 1 si OK ou 5 si NG. * LWM2M path: /5//6 * Body converter id: "CrcCheckBody" * @deprecated * @tapVersion(">=1.0") * @param data input * @return Uint8Array api call */ postCrcCheck(data: CrcCheckBody): Promise<Response<Uint8Array>>; /** * Check CRC * Compare le CRC attendu au CRC de la zone référencée. Modifie le Update Result (resource /5//5) à 1 si OK ou 5 si NG. * LWM2M path: /5//6 * Body converter id: "CrcCheckBody" * @deprecated * @tapVersion(">=1.0") * @param data input * @return call options */ postCrcCheckCall(data: CrcCheckBody): ServiceCallType; /** * Firmware package * Firmware package : actif uniquement en mode update. Permet de transférer les données à programmer en flash pour l&#39;update firmware. * LWM2M path: /5//0 * @deprecated * @tapVersion(">=1.0") * @return void api call */ postPackage(): Promise<Response<void>>; /** * Firmware package * Firmware package : actif uniquement en mode update. Permet de transférer les données à programmer en flash pour l&#39;update firmware. * LWM2M path: /5//0 * @deprecated * @tapVersion(">=1.0") * @return call options */ postPackageCall(): ServiceCallType; /** * Update * Contrôle de l&#39;update: passage en mode update/updater/normal. Param: état futur souhaité. Actif uniquement si loggé en admin. (plus autres contraintes à définir: CRC check fait, etc.) Peut nécessiter un Reset du module * LWM2M path: /5//2 * @deprecated * @tapVersion(">=1.0") * @return void api call */ postUpdate(): Promise<Response<void>>; /** * Update * Contrôle de l&#39;update: passage en mode update/updater/normal. Param: état futur souhaité. Actif uniquement si loggé en admin. (plus autres contraintes à définir: CRC check fait, etc.) Peut nécessiter un Reset du module * LWM2M path: /5//2 * @deprecated * @tapVersion(">=1.0") * @return call options */ postUpdateCall(): ServiceCallType; }