Set up · How-to
LoRaWAN sensors and gateways
Add LoRa sensors with their DevEUI and AppKey, point your gateways at your workspace, and use uplinks and downlinks like any other device.
Updated 11 Nov 20262 min read
All ThingsX IoT Core pages
- What ThingsX IoT Core does
- Quick start: connect your first device
- Key concepts
- Security and access
- Connect Wi-Fi and IoT devices
- BLE gateways, shelf labels and child devices
- LoRaWAN sensors and gateways
- Industrial I/O modules
- Device twins and state
- Send commands to devices
- Rules: react to device messages
- SDK and REST API
- Monitor your fleet and support customers
- Moving from another IoT platform
- From AWS IoT Core
- From Azure IoT Hub and other platforms
- Device can't connect
- Devices keep disconnecting or reconnecting
- Data isn't arriving or a rule doesn't fire
- Frequently asked questions
- Topics and limits reference
LoRaWAN is built in: sensors are things in the same registry as your other devices, secured, monitored and used in the same rules.
- 1Add the sensorDevEUI + AppKey (+ JoinEUI)
- 2Register the gatewaythen point its packet forwarder at your workspace
- 3Sensor joinsover the air (OTAA)
- 4Uplinks become telemetrydecoded fields, RSSI, SNR
- 5Downlinks are commandswith fPort and acknowledgement
1. Add a sensor
Get started → LoRa device. Enter the DevEUI and AppKey printed on the sensor or its datasheet (and the JoinEUI/AppEUI if it has one). IoT Core registers it on the LoRa network for you; there is no second screen to fill in. Deleting the thing removes it from the network too.
2. Register and point the gateway
Register each gateway with its gateway ID (from the gateway's label or admin page) using POST /v1/lora/gateways, or ask us to add it. Then set the gateway's packet forwarder to the LoRa server address and port in your workspace details. The gateway shows online once it starts sending.
3. Uplinks
Each uplink becomes telemetry on the sensor: the decoded fields (from the device profile's codec) plus rssi, snr, the frame counter and which gateways heard it. The twin's reported state is updated with the latest decoded values.
4. Downlinks
Send a command with fPort and the payload as data_hex (or data_b64, or a JSON object if the codec encodes it):
{ "fPort": 10, "data_hex": "0164" }
The command is queued for the sensor's next receive window and marked acked or failed when the network confirms it.
Troubleshooting
- Never joins: wrong AppKey or JoinEUI, the wrong region, or no gateway in range. The Event log shows join attempts it heard.
- Uplink for an unknown DevEUI: logged as
lora_unknown_device, never dropped silently. Add the sensor, or fix the DevEUI. - Gateway offline: an issue opens on the support page and closes by itself when the gateway is back.
Was this page helpful?
Can't find what you need? Contact support or read about ThingsX IoT Core.