Skip to main content

uplink_topic

Function uplink_topic 

Source
pub fn uplink_topic(application_id: &str) -> String
Expand description

Returns the topic filter for one application’s uplink events.

§Arguments

  • application_id - the application’s identifier, as ChirpStack shows it.

§Returns

The filter, with every device of the application matched.

§Examples

use pamoja_gateway::chirpstack::uplink_topic;

assert_eq!(
    uplink_topic("17c82e96-be03-4f38-aef3-f83d48582d97"),
    "application/17c82e96-be03-4f38-aef3-f83d48582d97/device/+/event/up"
);