LteService¶
Method | LwM2M request | Description |
---|---|---|
getEnabled | get /1024//131 alias: /lte/enabled |
Get LTE enable status |
putEnabled | put /1024//131 alias: /lte/enabled |
Write LTE enable status |
getApplicationData | get /1024//122 alias: /lte/application-data |
Get application data for LTE |
putApplicationData | put /1024//122 alias: /lte/application-data |
Set application data for LTE |
getEnabled¶
Minimal Tap Firmware version: 2.13
Get LTE enable 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.lte.getEnabled();
const value = response.body();
console.log(`getEnabled: ${value}`);
putEnabled¶
Minimal Tap Firmware version: 2.13
Write LTE enable status
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
isEnabled | boolean | optional |
Returns¶
Nothing
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const isEnabled = ...;
const response = await tap.service.lte.putEnabled(isEnabled);
const value = response.body();
console.log(`putEnabled: ${value}`);
getApplicationData¶
Minimal Tap Firmware version: 2.11
Get application data for LTE
Parameters¶
This endpoint does not need any parameter.
Returns¶
number (int8)
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const response = await tap.service.lte.getApplicationData();
const value = response.body();
console.log(`getApplicationData: ${value}`);
putApplicationData¶
Minimal Tap Firmware version: 2.11
Set application data for LTE
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
value | Uint8Array | optional |
Returns¶
Nothing
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const value = ...;
const response = await tap.service.lte.putApplicationData(value);
const value = response.body();
console.log(`putApplicationData: ${value}`);