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

Function get_pending_for_dev_eui

chirpstack/src/storage/device_queue.rs:178–189  ·  view source on GitHub ↗
(dev_eui: &EUI64)

Source from the content-addressed store, hash-verified

176}
177
178pub async fn get_pending_for_dev_eui(dev_eui: &EUI64) -> Result<DeviceQueueItem, Error> {
179 let qi = device_queue_item::dsl::device_queue_item
180 .filter(
181 device_queue_item::dev_eui
182 .eq(&dev_eui)
183 .and(device_queue_item::is_pending.eq(true)),
184 )
185 .first(&mut get_async_db_conn().await?)
186 .await
187 .map_err(|e| Error::from_diesel(e, dev_eui.to_string()))?;
188 Ok(qi)
189}
190
191pub async fn get_max_f_cnt_down(dev_eui: EUI64) -> Result<Option<i64>, Error> {
192 Ok(device_queue_item::dsl::device_queue_item

Callers 1

handle_uplink_ackMethod · 0.85

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by

no test coverage detected