LoraService¶
Method | LwM2M request | Description |
---|---|---|
getIds | get /1024//90 alias: /lora/ids |
Get LoRa IDs |
putIds | put /1024//90 alias: /lora/ids |
Write LoRa IDs |
getConfig | get /1024//91 alias: /lora/config |
Get LoRa configuration |
putConfig | put /1024//91 alias: /lora/config |
Write LoRa configuration |
getIds¶
Minimal Tap Firmware version: 1.0
Get LoRa IDs
Parameters¶
This endpoint does not need any parameter.
Returns¶
Uint8Array
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const response = await tap.service.lora.getIds();
const value = response.body();
console.log(`getIds: ${value}`);
putIds¶
Minimal Tap Firmware version: 1.0
Write LoRa IDs
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
value | Uint8Array |
Returns¶
Nothing
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const value = ...;
const response = await tap.service.lora.putIds(value);
const value = response.body();
console.log(`putIds: ${value}`);
getConfig¶
Minimal Tap Firmware version: 1.0
Get LoRa configuration
Parameters¶
This endpoint does not need any parameter.
Returns¶
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const response = await tap.service.lora.getConfig();
const value = response.body();
console.log(`getConfig: ${value}`);
putConfig¶
Minimal Tap Firmware version: 1.0
Write LoRa configuration
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
value | LoraConfig |
Returns¶
Nothing
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const value = ...;
const response = await tap.service.lora.putConfig(value);
const value = response.body();
console.log(`putConfig: ${value}`);