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

Method location_event

chirpstack/src/integration/http.rs:172–183  ·  view source on GitHub ↗
(
        &self,
        _vars: &HashMap<String, String>,
        pl: &integration::LocationEvent,
    )

Source from the content-addressed store, hash-verified

170 }
171
172 async fn location_event(
173 &self,
174 _vars: &HashMap<String, String>,
175 pl: &integration::LocationEvent,
176 ) -> Result<()> {
177 let b = match self.json {
178 true => serde_json::to_vec(&pl)?,
179 false => pl.encode_to_vec(),
180 };
181
182 self.post_event("location", b).await
183 }
184}
185
186#[cfg(test)]

Callers 1

test_httpFunction · 0.45

Calls 1

post_eventMethod · 0.45

Tested by 1

test_httpFunction · 0.36