Appearance
The Things Stack (TTN) integration
Connect The Things Stack / TTN v3 webhooks so LoRaWAN uplinks appear as telemetry on Autoconnecto devices.
Before you start
- Device exists in Autoconnecto.
- Device attribute
lorawan.dev_eui(orintegration.external_id) equals the end-device DevEUI.
In Autoconnecto
- Open Integrations → New integration.
- Choose The Things Stack (TTN), name it, create.
- Copy the HTTP endpoint URL.
- Click Generate webhook secret and copy the value (shown once).
- Start the integration.
In The Things Stack
- Open Applications → [your application] → Integrations → Webhooks.
- Add a webhook.
- Paste the Autoconnecto HTTP endpoint URL.
- Add header
X-Webhook-Secretwith your secret. - Enable uplink messages and save.
Dry-run without TTN
From the device SDK repo (examples/integrations/):
bash
export TENANT_ID=… WEBHOOK_SECRET=… DEV_EUI=…
./ttn-webhook.shUses ttn-uplink.sample.json.
Verify
Trigger an uplink. Check Integrations → [your integration] → Recent events for success, then confirm telemetry on the device.
Optional transform
Use Transform + Dry-run preview on the integration detail page to reshape decoded payload keys. Optional Script transform runs after pipeline steps for custom JS decoding.
Auto-create devices
Enable Auto-create device on first uplink if you want unknown DevEUIs provisioned automatically.
Downlink
- Integration detail → Downlink.
- Enable downlink; set TTN API base URL, API key, and Application ID.
- Save, then send hex payload to an Autoconnecto device ID that has
lorawan.dev_euiset.
Rule Engine
Use Downlink → Auto-downlink from telemetry on this integration, then bind the created engine on the device profile. Or configure node integration_downlink via API.
