Skip to content

FirmwareService

Method LwM2M request Description
postPackage post /5//0
alias: /firmware/package
Firmware update data
postUpdate post /5//2
alias: /firmware/update
firmware Update mode
getState get /5//3
alias: /firmware/state
Get state
getUpdateResult get /5//5
alias: /firmware/update-result
Get firmware update result
postCrcCheck post /5//6
alias: /firmware/crc-check
Check CRC

postPackage

Minimal Tap Firmware version: 1.0

Firmware update data

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

import { Tap } from "@iotize/tap";

const tap: Tap = ...;


const response = await tap.service.firmware.postPackage();
const value = response.body();
console.log(`postPackage: ${value}`);

postUpdate

Minimal Tap Firmware version: 1.0

firmware Update mode

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

import { Tap } from "@iotize/tap";

const tap: Tap = ...;


const response = await tap.service.firmware.postUpdate();
const value = response.body();
console.log(`postUpdate: ${value}`);

getState

Minimal Tap Firmware version: 1.0

Get state

Parameters

This endpoint does not need any parameter.

Returns

FirmwareState

Example

import { Tap } from "@iotize/tap";

const tap: Tap = ...;


const response = await tap.service.firmware.getState();
const value = response.body();
console.log(`getState: ${value}`);

getUpdateResult

Minimal Tap Firmware version: 1.0

Get firmware update result

Parameters

This endpoint does not need any parameter.

Returns

FirmwareUpdateResult

Example

import { Tap } from "@iotize/tap";

const tap: Tap = ...;


const response = await tap.service.firmware.getUpdateResult();
const value = response.body();
console.log(`getUpdateResult: ${value}`);

postCrcCheck

Minimal Tap Firmware version: 1.0

Check CRC

Parameters

Name Type Description Notes
data CrcCheckBody

Returns

Nothing

Example

import { Tap } from "@iotize/tap";

const tap: Tap = ...;


const data = ...;
const response = await tap.service.firmware.postCrcCheck(data);
const value = response.body();
console.log(`postCrcCheck: ${value}`);