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§
- Pamoja
Chirpstack Reception - One gateway that heard an uplink.
- Pamoja
Chirpstack Uplink - An opaque handle to a parsed uplink event.
- Pamoja
Chirpstack Uplink Summary - 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.