lora

end-device add

Description

Provision a LoRaWAN device

Usage

ABP: V1
lora end-device add <topic> v1 abp <devEUI> <devAddr> <nwkSKey> <appSKey> [--name <name>] [--pos <pos>]
ABP: V1.1
lora end-device add <topic> v1.1 abp <devEUI> <devAddr> <nwkSEncKey> <sNwkSIntKey> <fNwkSIntKey> <appSKey> [--name <name>] [--pos <pos>]
OTA: V1
lora end-device add <topic> v1 ota <devEUI> <devAddr> <nwkKey> <appKey> <appEUI> [--name <name>] [--pos <pos>]
OTA: V1.1
lora end-device add <topic> v1.1 ota <devEUI> <devAddr> <nwkKey> <appSKey> <joinEUI> [--name <name>] [--pos <pos>]

Arguments

Name Description
topic The topic to associate with the device
devEUI Device devEUI value
devAddr Device devAddr value
nwkSKey Device key value for ABP: V1
nwkKey Key value for ABP: V1, OTA: V1/V1.1
nwkSEncKey Key value for ABP: V1.1
sNwkSIntKey Key value for ABP: V1.1
fNwkSIntKey Key value for ABP: V1.1
appSKey Key value for ABP: V1/V1.1, OTA: V1.1
appEUI Key value for OTA: V1
joinEUI Key value for OTA: V1.1

Options

Name Description
name A name for the device
pos A position for the device, specified as latitude/longitude coordinates, e.g. “-25.3457,131.0372”

end-device help

Description

Show the help screen for lora end-device

Usage

lora end-device help

end-device ls

Description

Show provisioned LoRaWAN devices

Usage

lora end-device ls [<nwkAddr>]

Arguments

Name Description
nwkAddr Optional. If provided, only devices with the specified address will be shown

end-device rm

Description

Remove a provisioned LoRaWAN device

Usage

lora end-device rm <nwkAddr>

Arguments

Name Description
nwkAddr Devices with the specified address will be removed

help

Description

Show the help screen for lora

Usage

lora help

type add

Description

Add or replace a LoRaWAN device type

Usage

lora type add <topic> <name>

Arguments

Name Description
topic The topic to associate with the device type
name The name of the device type

type help

Description

Show the help screen for lora type

Usage

lora type help

type ls

Description

Show LoRaWAN device types

Usage

lora type ls

type rm

Description

Remove a LoRaWAN device type

Usage

lora type rm <topic>
Name Description
topic The topic of the device type to remove

Environment Configuration

The following flags are available be used to configure the lora command for the target environment:

Name Environment Variable Description
–control-center-host CONTROL_CENTER_HOST Host for control-center service
–control-center-port CONTROL_CENTER_PORT Port for control-center service
–control-center-scheme CONTROL_CENTER_SCHEME Scheme for control-center service
–streambed-mqtt-gateway-host STREAMBED_MQTT_GATEWAY_HOST Host for streambed-mqtt-gateway service
–streambed-mqtt-gateway-port STREAMBED_MQTT_GATEWAY_PORT Port for streambed-mqtt-gateway service
–streambed-mqtt-gateway-scheme STREAMBED_MQTT_GATEWAY_SCHEME Scheme for streambed-mqtt-gateway service
–storage-dir STORAGE_DIR Directory to store CLI data in. Defaults to ~/HOME/.streambed-cli