MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get_event_topic

Method get_event_topic

chirpstack/src/integration/mqtt.rs:244–253  ·  view source on GitHub ↗
(&self, application_id: &str, dev_eui: &str, event: &str)

Source from the content-addressed store, hash-verified

242 }
243
244 fn get_event_topic(&self, application_id: &str, dev_eui: &str, event: &str) -> Result<String> {
245 Ok(self.templates.render(
246 "event_topic",
247 &EventTopicContext {
248 application_id: application_id.to_string(),
249 dev_eui: dev_eui.to_string(),
250 event: event.to_string(),
251 },
252 )?)
253 }
254
255 async fn publish_event(&self, topic: &str, b: Vec<u8>) -> Result<()> {
256 info!(topic = %topic, "Publishing event");

Callers 7

uplink_eventMethod · 0.80
join_eventMethod · 0.80
ack_eventMethod · 0.80
txack_eventMethod · 0.80
log_eventMethod · 0.80
status_eventMethod · 0.80
location_eventMethod · 0.80

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected