These docs are actively being reviewed, expanded, and revised — some pages may be incomplete or inaccurate. If something looks wrong, please tell us at support@communityhub.cloud.
These docs are actively being reviewed, expanded, and revised — some pages may be incomplete or inaccurate. If something looks wrong, please tell us at support@communityhub.cloud.
Draft spec for the Fieldline LoRaWAN integration — a single organization-level registration under which every physical sensor appears in Data Hub automatically as its own device.
Status: Draft spec. This page records the agreed architecture for the Fieldline LoRaWAN integration. It is not yet implemented — the ingestion endpoint described below does not exist and will return an error. Do not build against it until this page’s status changes to Full setup.
This page replaces the earlier ChirpStack integration draft, which was never built.
Fieldline is an aggregation layer that sits in front of a LoRaWAN network server and collects readings from LoRaWAN sensors deployed across an organization’s buildings. Rather than each sensor being registered in Data Hub by hand, Fieldline registers once per organization and every sensor behind it then appears in Data Hub on its own as a distinct device.Fieldline is its own integration type in Data Hub — not a variant of the generic CSV source. Devices arriving this way are identifiable as LoRaWAN sensors rather than being grouped with generic file uploads.
The generic CSV endpoint assumes one token per data source, issued by the Data Hub team on request. That model doesn’t hold up for a LoRaWAN fleet: every new sensor would mean requesting another token, storing it, and maintaining a sensor-to-token mapping. Workable for a handful of test devices, unworkable across many buildings and hundreds of sensors.
The org-token is what lets Data Hub associate incoming devices with the correct organization automatically. Assigning an organization by hand was the only reason earlier device-based sources required you to send a serial number to the Data Hub team before data would flow — the org-token retires that step.
Treat the org-token as a credential. It scopes device creation for your whole organization, so anyone holding it can register devices against you. Do not commit it to source control or send it in plain text. Contact the Data Hub team to rotate it if you suspect exposure.
Data Hub creates a device the first time it sees data for it. The flow is:
1
A sensor is provisioned in Fieldline
Fieldline generates a device-token for the sensor and stores it permanently against the sensor’s DevEUI.
2
Fieldline pushes the sensor's first reading
The push carries the organization’s org-token and the sensor’s new device-token.
3
Data Hub creates the device
A device-token not seen before, under a valid org-token, causes Data Hub to create a new device in that organization and begin recording against it.
4
The device appears in the interface
It shows up under Data Hub → Data Sources with no manual setup on either side.
Each sensor remains a separate device with its own identity, history, and configuration. Two sensors of the same model in different locations stay distinct — they are never merged into a single combined dataset.
Device-tokens are generated by Fieldline and must follow this scheme:
Rule
Value
Length
30 characters
Character set
0-9, a-z, A-Z only — no spaces, no special characters
Case
Case-sensitive
Uniqueness
Unique within the organization
Device-tokens must be stable. Persist each token against the sensor’s DevEUI and never regenerate it. If a token changes — on restart, redeploy, or reprovisioning — Data Hub treats it as a new sensor, creates a second device, and the sensor’s history splits across the two.
Not yet implemented. This endpoint is the agreed target shape but has not been built. It will be added once the design is finalised with the Fieldline team, at which point this note will be removed.
One request carries readings for a single sensor. Malformed device-tokens are rejected at ingest rather than silently creating a device.
The authentication model for this endpoint is still being finalised and may change before implementation. The header names and payload shape above should be treated as provisional.
Measurements are pushed from Fieldline to Data Hub. Sensor metadata is pulled by Data Hub from an endpoint on the Fieldline side, queried per device-token.This is necessary because what a sensor measures and in what units cannot be inferred from readings alone. The metadata Data Hub expects for each sensor:
Field
Purpose
Sensor identity
Stable identifier and human-readable name
Location
Building or site the sensor is installed in
Measurements
Each variable the sensor exposes
Units
Unit for each measurement, as reported
Variable type
Totalizer, instantaneous measurement, or average rate
Operational status
Battery level, last-seen, and other health fields
The exact schema for this endpoint has not been agreed yet. It will be documented here once Fieldline proposes it and Data Hub has reviewed it.
This cap is a guard against runaway device creation from a fault on either side, not a licensing limit. Contact the Data Hub team if your deployment needs more headroom.
These are unresolved and will be settled before implementation:
Metadata endpoint schema
The field list above describes what Data Hub needs. The concrete request and response shape is still to be proposed by Fieldline.
Authentication on the ingest endpoint
The current design uses the org-token to scope incoming devices to an organization. Whether the endpoint additionally authenticates, and how, is still being decided.
Deleted-device behaviour
If a device is deleted in Data Hub and Fieldline pushes to the same device-token again, it is not yet decided whether the device is recreated or the push is rejected.
Backfill
How historical readings accumulated before the integration goes live are re-uploaded, and over what window, has not been specified.