Connect LoRaWAN sensors

Send LoRaWAN uplinks to FreeMaint from The Things Stack, ChirpStack or a Milesight gateway, and let FreeMaint decode the certified sensors.

6 min read
Print this section

LoRaWAN sensors run on batteries for years and reach far through walls. Your network server — The Things Stack, ChirpStack or the server built into a Milesight gateway — forwards each uplink to FreeMaint over HTTP. For the Milesight CT101 and EM300-TH, FreeMaint decodes the payload itself.

Choose your source

The Things Stack

The Things Network or The Things Industries: add a custom webhook to your application.

ChirpStack

Your own LoRaWAN network server: add an HTTP integration to your application.

Milesight gateway

UG65, UG56 and other gateways with the built-in network server: add an HTTP data transmission.

The Things Stack

  1. In Connected devices → Integrations, click Connect a device, choose The Things Stack (LoRaWAN) and create the connection.
  2. In The Things Stack console, open your application → Integrations → Webhooks → Add webhook → Custom webhook.
  3. Choose the JSON format and paste the base URL shown by FreeMaint.
  4. Under Additional headers, add the header shown by FreeMaint (name and value).
  5. Tick Uplink message and leave its path empty. Do not tick Request authentication: it would replace the FreeMaint header.

ChirpStack

  1. Create the connection in FreeMaint, choosing ChirpStack (LoRaWAN).
  2. In ChirpStack, open your application → Integrations → HTTP → Add.
  3. Keep the JSON payload encoding and paste the event endpoint URL shown by FreeMaint.
  4. Under Headers, add the header shown by FreeMaint (name and value).

Milesight gateway

  1. Create the connection in FreeMaint, choosing Milesight gateway.
  2. In the gateway's web interface, open Network Server → Applications → your application.
  3. Add an HTTP(S) data transmission and paste the uplink data URL shown by FreeMaint.
  4. Add the HTTP header shown by FreeMaint (name and value).
  5. Do not set a payload codec on the gateway: FreeMaint needs the full uplink to decode certified sensors.

Sensors decoded by FreeMaint

Milesight CT101

Current transformer clamped on a cable: current, total current and alarms. Powered by the measured cable, it stops reporting when the current falls below about 1.4 A — a gap in its data can simply mean the machine is off.

Milesight EM300-TH

Temperature and humidity, with battery level. Ideal for cold rooms, server rooms, stores and technical rooms.

Tip

Other LoRaWAN sensors also work when your network server decodes them: FreeMaint stores the decoded values it receives, one channel per numeric field.

Tip

For each LoRaWAN device FreeMaint keeps the battery level, the signal (RSSI and SNR) and the last message. Set the expected reporting interval on the device to be warned when it goes silent. Late and offline are tracked once you confirm the device (Confirm button on its page).

Was this page helpful?