SlaveServerService¶
Method | LwM2M request | Description |
---|---|---|
getProtocolConfiguration | get /1024//92 alias: /slave-server/protocol-configuration |
Get slave server protocol configuration (generic) |
postProtocolConfiguration | post /1024//92 alias: /slave-server/protocol-configuration |
Set slave server protocol configuration (temporary). Not available anymore. |
putProtocolConfiguration | put /1024//92 alias: /slave-server/protocol-configuration |
Write slave server protocol configuration |
getProtocolConfiguration¶
Minimal Tap Firmware version: 2.1
Get slave server protocol configuration (generic)
Parameters¶
This endpoint does not need any parameter.
Returns¶
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const response = await tap.service.slaveserver.getProtocolConfiguration();
const value = response.body();
console.log(`getProtocolConfiguration: ${value}`);
postProtocolConfiguration¶
Minimal Tap Firmware version: 1.0
Set slave server protocol configuration (temporary). Not available anymore.
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
data | SlaveServerRawConfig | optional |
Returns¶
Nothing
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const data = ...;
const response = await tap.service.slaveserver.postProtocolConfiguration(data);
const value = response.body();
console.log(`postProtocolConfiguration: ${value}`);
putProtocolConfiguration¶
Minimal Tap Firmware version: 2.1
Write slave server protocol configuration
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
data | SlaveServerRawConfig | optional |
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 data = ...;
const response = await tap.service.slaveserver.putProtocolConfiguration(data);
const value = response.body();
console.log(`putProtocolConfiguration: ${value}`);