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

Function get_uplink_event

chirpstack/src/integration/mock.rs:119–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119pub async fn get_uplink_event() -> Option<integration::UplinkEvent> {
120 if UPLINK_EVENTS.read().await.is_empty() {
121 return None;
122 }
123
124 UPLINK_EVENTS
125 .write()
126 .await
127 .drain(0..1)
128 .collect::<Vec<integration::UplinkEvent>>()
129 .first()
130 .cloned()
131}
132
133pub async fn get_ack_event() -> Option<integration::AckEvent> {
134 if ACK_EVENTS.read().await.is_empty() {

Callers 1

uplink_eventFunction · 0.85

Calls

no outgoing calls

Tested by 1

uplink_eventFunction · 0.68