Appearance
ChirpStack integration
Connect ChirpStack so LoRaWAN uplinks appear as telemetry on Autoconnecto devices.
Before you start
- Device exists in Autoconnecto.
- Device attribute
lorawan.dev_eui(orintegration.lorawan.dev_eui/integration.external_id) equals the ChirpStack DevEUI (hex, no separators preferred).
In Autoconnecto
- Open Integrations → New integration.
- Choose ChirpStack, name it, create.
- Copy the HTTP endpoint URL.
- Click Generate webhook secret and copy the value (shown once).
- Click Start receiving uplinks (or Start on the detail page).
In ChirpStack
- Open Applications → [your application] → Integrations.
- Add HTTP.
- Paste the Autoconnecto endpoint into Event endpoint URL(s).
- Add header:
- Name:
X-Webhook-Secret - Value: the secret from Autoconnecto
- Name:
- Save.
Dry-run without ChirpStack
From the device SDK repo (examples/integrations/):
bash
export TENANT_ID=… WEBHOOK_SECRET=… DEV_EUI=…
./chirpstack-webhook.shUses chirpstack-uplink.sample.json (DevEUI must match the Autoconnecto device).
Verify
Send an uplink from a device. In Autoconnecto open the integration → Recent events — you should see success. Open the device → telemetry for decoded fields (e.g. from ChirpStack object).
Optional transform
On the integration detail page, add Transform steps (rename, scale, …) if you need to reshape keys after decode. Use Dry-run preview with a sample ChirpStack JSON before going live.
For custom decoding, enable Script transform (function transform(data, metadata) { … }) — runs after pipeline steps in a sandbox.
Auto-create devices
On create (or detail → Device matching), enable Auto-create device on first uplink. Unknown DevEUIs create a device with lorawan.dev_eui set. Leave off if you want only pre-provisioned devices.
Downlink
- Open the integration → Downlink.
- Enable downlink and enter ChirpStack API base URL + API token.
- Save.
- Enter Autoconnecto device ID, fPort, and hex payload, then Send downlink.
The device must already have lorawan.dev_eui set.
Rule Engine
On the integration → Downlink → Auto-downlink from telemetry, create a Rule Engine that queues a downlink when telemetry includes a hex key (default downlink_hex). Then bind that engine on Device Profile → Edit → Rule engine.
You can also author node integration_downlink via API (integrationId, payloadHex or payloadFromKey).
