Skip to main content

Module gateway_chirpstack

Module gateway_chirpstack 

Source
Expand description

The C ABI for the uplink events a ChirpStack network server publishes.

ChirpStack publishes every uplink it deduplicates to an MQTT topic, application/<id>/device/<dev_eui>/event/up, as the JSON form of its UplinkEvent message. pamoja_chirpstack_uplink_parse reads one into a handle, and the calls here read the device, the counter, the payload and every gateway that heard it back out.

Fields protobuf’s JSON mapping leaves out when they hold their default read as that default: a frame counter of zero, ADR off, unconfirmed.

Structs§

PamojaChirpstackReception
One gateway that heard an uplink.
PamojaChirpstackUplink
An opaque handle to a parsed uplink event.
PamojaChirpstackUplinkSummary
The scalar fields of an uplink event, read in one call.

Constants§

PAMOJA_CHIRPSTACK_APPLICATION_ID
The application the device belongs to.
PAMOJA_CHIRPSTACK_DEDUPLICATION_ID
The identifier ChirpStack gave the uplink once it deduplicated the gateways’ copies.
PAMOJA_CHIRPSTACK_DEVICE_NAME
The name the device was given in ChirpStack.
PAMOJA_CHIRPSTACK_TIME
When the uplink was received, as ChirpStack wrote it.

Functions§

pamoja_chirpstack_uplink_best_reception⚠
Finds the gateway that heard an uplink best.
pamoja_chirpstack_uplink_data⚠
Copies out the application payload an uplink carried, decoded from base64.
pamoja_chirpstack_uplink_free⚠
Releases an uplink event handle.
pamoja_chirpstack_uplink_parse⚠
Reads an uplink event from the JSON ChirpStack published.
pamoja_chirpstack_uplink_reception⚠
Reads one gateway that heard an uplink.
pamoja_chirpstack_uplink_summary⚠
Reads the scalar fields of an uplink event.
pamoja_chirpstack_uplink_text⚠
Reads one of an uplink event’s text fields.
pamoja_chirpstack_uplink_topic⚠
Builds the MQTT topic an application’s uplink events are published on, with a wildcard in place of the device.