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

Function get_join_event

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

Source from the content-addressed store, hash-verified

103}
104
105pub async fn get_join_event() -> Option<integration::JoinEvent> {
106 if JOIN_EVENTS.read().await.is_empty() {
107 return None;
108 }
109
110 JOIN_EVENTS
111 .write()
112 .await
113 .drain(0..1)
114 .collect::<Vec<integration::JoinEvent>>()
115 .first()
116 .cloned()
117}
118
119pub async fn get_uplink_event() -> Option<integration::UplinkEvent> {
120 if UPLINK_EVENTS.read().await.is_empty() {

Callers 1

join_eventFunction · 0.85

Calls

no outgoing calls

Tested by 1

join_eventFunction · 0.68