Skip to content

TargetService

Method LwM2M request Description
getProtocol get /1027//1
alias: /target/protocol
Get target protocol
setProtocol post /1027//1
alias: /target/protocol
Temporarily change target protocol
putProtocol put /1027//1
alias: /target/protocol
Write target protocol in configuration
getCoreType get /1027//2
alias: /target/core-type
Get core type
putCoreType put /1027//2
alias: /target/core-type
Write core type
isConnected get /1027//3
alias: /target/connect
Read target protocol connection status
connect post /1027//3
alias: /target/connect
Connect to target
disconnect post /1027//4
alias: /target/disconnect
Disconnect from target
reset post /1027//5
alias: /target/reset
Reset target
getFirmwareVersion get /1027//6
alias: /target/firmware-version
Get target firmware version
putFirmwareVersion put /1027//6
alias: /target/firmware-version
Write target firmware version
getVcc get /1027//7
alias: /target/vcc
Get vcc
getMinVoltage get /1027//8
alias: /target/min-voltage
Get min target voltage
putMinVoltage put /1027//8
alias: /target/min-voltage
Write min target voltage value
getMaxVoltage get /1027//9
alias: /target/max-voltage
Get max target voltage
putMaxVoltage put /1027//9
alias: /target/max-voltage
Write max target voltage value
getPageSize get /1027//10
alias: /target/page-size
Get target page size
putPageSize put /1027//10
alias: /target/page-size
Write target page size
getComStats get /1027//11
alias: /target/com-stats
Get communication stats
clearComStats post /1027//11
alias: /target/com-stats
Clear communication stats
getAvailableProtocols get /1027//20
alias: /target/available-protocols
List available target protocols
getSerialModbusConfiguration get /1027//21
alias: /target/serial-modbus-configuration
Get Serial/Modbus protocol configuration options
setSerialModbusConfiguration post /1027//21
alias: /target/serial-modbus-configuration
Temporary update configuration
putSerialModbusConfiguration put /1027//21
alias: /target/serial-modbus-configuration
Write protocol options in Tap configuration
getModbusDefaultSlaveAddress get /1027//22
alias: /target/modbus-default-slave-address
Get modbus default slave address
putModbusDefaultSlaveAddress put /1027//22
alias: /target/modbus-default-slave-address
Write modbus default slave address
getS3PConfiguration get /1027//21
alias: /target/s3p-configuration
Get S3P protocol configuration
setS3PConfiguration post /1027//21
alias: /target/s3p-configuration
Temporary update S3P configuration
putS3PConfiguration put /1027//21
alias: /target/s3p-configuration
Update protocol configuration
getModbusTcpConfiguration get /1027//21
alias: /target/modbus-tcp-configuration
Get Modbus TCP protocol configuration
setModbusTcpConfiguration post /1027//21
alias: /target/modbus-tcp-configuration
Temporary update Modbus TCP configuration
putModbusTcpConfiguration put /1027//21
alias: /target/modbus-tcp-configuration
Update Modbus TCP configuration
getCanConfiguration get /1027//21
alias: /target/can-configuration
Get CAN protocol configuration
setCanConfiguration post /1027//21
alias: /target/can-configuration
Temporary update CAN configuration
putCanConfiguration put /1027//21
alias: /target/can-configuration
Update CAN protocol configuration
postResetKeep post /1027//30
alias: /target/reset-keep
Put and keep target in Reset state
readDebug get /1027//31
alias: /target/debug-access
Debug access
writeDebug post /1027//31
alias: /target/debug-access
Write address
getRegisterAccess get /1027//32
alias: /target/register-access
Register access
postRegisterAccess post /1027//32
alias: /target/register-access
Write register value
sendReceive get /1027//34
alias: /target/transparent/send-receive
Transparent send and receive
send post /1027//34
alias: /target/transparent/send
Transparent send
readBytes get /1027//35
alias: /target/transparent/read-bytes
Read data transparent mode with limit
modbusWrite post /1027//37
alias: /target/modbus/write
Direct modbus write
modbusRead get /1027//38
alias: /target/modbus/read
Direct modbus read
getSubProtocol get /1027//40
alias: /target/sub-protocol
Get current sub protocol
getReceivedCount get /1027//43
alias: /target/received-count
Get byte length received in buffer
readAddress get /1027//33
alias: /target/read-address
SWD direct Read
writeAddress post /1027//33
alias: /target/read-address
SWD direct Write

getProtocol

Minimal Tap Firmware version: 1.0

Get target protocol

Parameters

This endpoint does not need any parameter.

Returns

TargetProtocol

Example

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

const tap: Tap = ...;


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

setProtocol

Minimal Tap Firmware version: 1.0

Temporarily change target protocol

Parameters

Name Type Description Notes
targetProtocol TargetProtocol TargetProtocol object to set

Returns

Nothing

Example

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

const tap: Tap = ...;


const targetProtocol = ...;
const response = await tap.service.target.setProtocol(targetProtocol);
const value = response.body();
console.log(`setProtocol: ${value}`);

putProtocol

Minimal Tap Firmware version: 1.0

Write target protocol in configuration

Parameters

Name Type Description Notes
targetProtocol TargetProtocol TargetProtocol object to set

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

const targetProtocol = ...;
const response = await tap.service.target.putProtocol(targetProtocol);
const value = response.body();
console.log(`putProtocol: ${value}`);

getCoreType

Minimal Tap Firmware version: 1.0

Get core type

Parameters

This endpoint does not need any parameter.

Returns

TargetCoreType

Example

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

const tap: Tap = ...;


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

putCoreType

Minimal Tap Firmware version: 1.0

Write core type

Parameters

Name Type Description Notes
value TargetCoreType Write core type

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

isConnected

Minimal Tap Firmware version: 1.63

Read target protocol connection status

Parameters

This endpoint does not need any parameter.

Returns

boolean

Example

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

const tap: Tap = ...;


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

connect

Minimal Tap Firmware version: 1.0

Connect to target

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

disconnect

Minimal Tap Firmware version: 1.0

Disconnect from target

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

reset

Minimal Tap Firmware version: 1.0

Reset target

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

getFirmwareVersion

Minimal Tap Firmware version: 1.0

Get target firmware version

Parameters

This endpoint does not need any parameter.

Returns

string (version)

Example

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

const tap: Tap = ...;


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

putFirmwareVersion

Minimal Tap Firmware version: 1.0

Write target firmware version

Parameters

Name Type Description Notes
value string

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getVcc

Minimal Tap Firmware version: 1.0

Get vcc

Parameters

This endpoint does not need any parameter.

Returns

number (uint16)

Example

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

const tap: Tap = ...;


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

getMinVoltage

Minimal Tap Firmware version: 1.0

Get min target voltage

Parameters

This endpoint does not need any parameter.

Returns

number (uint16)

Example

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

const tap: Tap = ...;


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

putMinVoltage

Minimal Tap Firmware version: 1.0

Write min target voltage value

Parameters

Name Type Description Notes
value number

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getMaxVoltage

Minimal Tap Firmware version: 1.0

Get max target voltage

Parameters

This endpoint does not need any parameter.

Returns

number (uint16)

Example

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

const tap: Tap = ...;


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

putMaxVoltage

Minimal Tap Firmware version: 1.0

Write max target voltage value

Parameters

Name Type Description Notes
value number

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getPageSize

Minimal Tap Firmware version: 1.0

Get target page size

Parameters

This endpoint does not need any parameter.

Returns

number (uint32)

Example

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

const tap: Tap = ...;


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

putPageSize

Minimal Tap Firmware version: 1.0

Write target page size

Parameters

Name Type Description Notes
value number

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getComStats

Minimal Tap Firmware version: 1.0

Get communication stats

Parameters

This endpoint does not need any parameter.

Returns

TargetComStats

Example

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

const tap: Tap = ...;


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

clearComStats

Minimal Tap Firmware version: 1.0

Clear communication stats

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

getAvailableProtocols

Minimal Tap Firmware version: 1.0

List available target protocols

Parameters

This endpoint does not need any parameter.

Returns

TargetProtocol[]

Example

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

const tap: Tap = ...;


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

getSerialModbusConfiguration

Minimal Tap Firmware version: 1.0

Get Serial/Modbus protocol configuration options

Parameters

This endpoint does not need any parameter.

Returns

TargetSerialModbusProtocolConfiguration

Example

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

const tap: Tap = ...;


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

setSerialModbusConfiguration

Minimal Tap Firmware version: 1.0

Temporary update configuration

Parameters

Name Type Description Notes
value TargetSerialModbusProtocolConfiguration

Returns

Nothing

Example

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

const tap: Tap = ...;


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

putSerialModbusConfiguration

Minimal Tap Firmware version: 1.0

Write protocol options in Tap configuration

Parameters

Name Type Description Notes
value TargetSerialModbusProtocolConfiguration

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getModbusDefaultSlaveAddress

Minimal Tap Firmware version: 1.0

Get modbus default slave address

Parameters

This endpoint does not need any parameter.

Returns

number (uint32)

Example

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

const tap: Tap = ...;


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

putModbusDefaultSlaveAddress

Minimal Tap Firmware version: 1.0

Write modbus default slave address

Parameters

Name Type Description Notes
address number New default modbus slave address

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

const address = ...;
const response = await tap.service.target.putModbusDefaultSlaveAddress(address);
const value = response.body();
console.log(`putModbusDefaultSlaveAddress: ${value}`);

getS3PConfiguration

Minimal Tap Firmware version: 1.0

Get S3P protocol configuration

Parameters

This endpoint does not need any parameter.

Returns

TargetS3PProtocolConfiguration

Example

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

const tap: Tap = ...;


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

setS3PConfiguration

Minimal Tap Firmware version: 1.0

Temporary update S3P configuration

Parameters

Name Type Description Notes
value TargetS3PProtocolConfiguration

Returns

Nothing

Example

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

const tap: Tap = ...;


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

putS3PConfiguration

Minimal Tap Firmware version: 1.0

Update protocol configuration

Parameters

Name Type Description Notes
value TargetS3PProtocolConfiguration

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getModbusTcpConfiguration

Minimal Tap Firmware version: 1.0

Get Modbus TCP protocol configuration

Parameters

This endpoint does not need any parameter.

Returns

TargetModbusTcpProtocolConfiguration

Example

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

const tap: Tap = ...;


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

setModbusTcpConfiguration

Minimal Tap Firmware version: 1.0

Temporary update Modbus TCP configuration

Parameters

Name Type Description Notes
value TargetModbusTcpProtocolConfiguration

Returns

Nothing

Example

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

const tap: Tap = ...;


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

putModbusTcpConfiguration

Minimal Tap Firmware version: 1.0

Update Modbus TCP configuration

Parameters

Name Type Description Notes
value TargetModbusTcpProtocolConfiguration

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

getCanConfiguration

Minimal Tap Firmware version: 2.6

Get CAN protocol configuration

Parameters

This endpoint does not need any parameter.

Returns

TargetCanProtocolConfiguration

Example

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

const tap: Tap = ...;


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

setCanConfiguration

Minimal Tap Firmware version: 2.6

Temporary update CAN configuration

Parameters

Name Type Description Notes
value TargetCanProtocolConfiguration

Returns

Nothing

Example

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

const tap: Tap = ...;


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

putCanConfiguration

Minimal Tap Firmware version: 2.6

Update CAN protocol configuration

Parameters

Name Type Description Notes
value TargetCanProtocolConfiguration

Returns

Nothing

Authorization

  • Configuration mode is required to perform this request.

Example

import { Tap } from "@iotize/tap";
import '@iotize/tap/ext/configurator';


const tap: Tap = ...;

await tap.configurator.setupConfigMode();

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

postResetKeep

Minimal Tap Firmware version: 1.0

Put and keep target in Reset state

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

readDebug

Minimal Tap Firmware version: 1.0

Debug access

Parameters

Name Type Description Notes
address number

Returns

Uint8Array

Example

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

const tap: Tap = ...;


const address = ...;
const response = await tap.service.target.readDebug(address);
const value = response.body();
console.log(`readDebug: ${value}`);

writeDebug

Minimal Tap Firmware version: 1.0

Write address

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

getRegisterAccess

Minimal Tap Firmware version: 1.0

Register access

Parameters

This endpoint does not need any parameter.

Returns

Uint8Array

Example

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

const tap: Tap = ...;


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

postRegisterAccess

Minimal Tap Firmware version: 1.0

Write register value

Parameters

This endpoint does not need any parameter.

Returns

Nothing

Example

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

const tap: Tap = ...;


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

sendReceive

Minimal Tap Firmware version: 1.0

Transparent send and receive

Parameters

Name Type Description Notes
data Uint8Array

Returns

Uint8Array

Example

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

const tap: Tap = ...;


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

send

Minimal Tap Firmware version: 1.0

Transparent send

Parameters

Name Type Description Notes
data Uint8Array

Returns

Uint8Array

Example

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

const tap: Tap = ...;


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

readBytes

Minimal Tap Firmware version: 1.0

Read data transparent mode with limit

Parameters

This endpoint does not need any parameter.

Returns

Uint8Array

Example

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

const tap: Tap = ...;


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

modbusWrite

Minimal Tap Firmware version: 1.0

Direct modbus write

Parameters

Name Type Description Notes
data ModbusWriteOptions

Returns

Nothing

Example

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

const tap: Tap = ...;


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

modbusRead

Minimal Tap Firmware version: 1.0

Direct modbus read

Parameters

Name Type Description Notes
data ModbusOptions

Returns

Uint8Array

Example

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

const tap: Tap = ...;


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

getSubProtocol

Minimal Tap Firmware version: 1.0

Get current sub protocol

Parameters

This endpoint does not need any parameter.

Returns

TargetProtocol

Example

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

const tap: Tap = ...;


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

getReceivedCount

Minimal Tap Firmware version: 1.57

Get byte length received in buffer

Parameters

This endpoint does not need any parameter.

Returns

number (uint16)

Example

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

const tap: Tap = ...;


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

readAddress

Minimal Tap Firmware version: 1.0

SWD direct Read

Parameters

Name Type Description Notes
value MemoryInfo

Returns

Uint8Array

Example

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

const tap: Tap = ...;


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

writeAddress

Minimal Tap Firmware version: 1.0

SWD direct Write

Parameters

Name Type Description Notes
value MemoryWriteInfo

Returns

Nothing

Example

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

const tap: Tap = ...;


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