Skip to content

SinglePacketService

Method LwM2M request Description
getInfo get /1024//81
alias: /single-packet/info
Get information concerning Single Packet Store Status
writeAndExecuteBytes post /1024//80
alias: /single-packet/write-and-execute-bytes
Send a complete Small Single Packet
writeAndExecute post /1024//80
alias: /single-packet/write-and-execute
Send and execute the given Single Packet in one request
writeChunk post /1024//82
alias: /single-packet/write-chunk
Write single packet chunk
executeSinglePacketInStore post /1024//83
alias: /single-packet/execute-single-packet-in-store
Execute single packet stored in Tap storage

getInfo

Minimal Tap Firmware version: 1.13

Get information concerning Single Packet Store Status

Parameters

This endpoint does not need any parameter.

Returns

SinglePacketStoreInfo

Example

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

const tap: Tap = ...;


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

writeAndExecuteBytes

Minimal Tap Firmware version: 1.13

Send a complete Small Single Packet

Parameters

Name Type Description Notes
data Uint8Array optional

Returns

Nothing

Example

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

const tap: Tap = ...;


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

writeAndExecute

Minimal Tap Firmware version: 1.13

Send and execute the given Single Packet in one request

Parameters

Name Type Description Notes
data SinglePacket optional

Returns

Nothing

Example

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

const tap: Tap = ...;


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

writeChunk

Minimal Tap Firmware version: 1.13

Write single packet chunk

Parameters

Name Type Description Notes
data SinglePacketChunk optional

Returns

Nothing

Example

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

const tap: Tap = ...;


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

executeSinglePacketInStore

Minimal Tap Firmware version: 1.13

Execute single packet stored in Tap storage

Parameters

Name Type Description Notes
crc number CRC of the single packet stored in Tap storage. optional

Returns

Nothing

Example

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

const tap: Tap = ...;


const crc = ...;
const response = await tap.service.singlepacket.executeSinglePacketInStore(crc);
const value = response.body();
console.log(`executeSinglePacketInStore: ${value}`);