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

Function set_pending

chirpstack/src/storage/mac_command.rs:6–12  ·  view source on GitHub ↗
(ds: &mut internal::DeviceSession, set: &lrwn::MACCommandSet)

Source from the content-addressed store, hash-verified

4use chirpstack_api::internal;
5
6pub fn set_pending(ds: &mut internal::DeviceSession, set: &lrwn::MACCommandSet) -> Result<()> {
7 let cid = set.cid()?;
8 let b = set.to_vec()?;
9 ds.mac_command_pending.insert(cid.to_u8().into(), b);
10 info!(cid = %cid, "Pending mac-command block set");
11 Ok(())
12}
13
14pub async fn get_pending(
15 ds: &mut internal::DeviceSession,

Callers 1

set_phy_payloadsMethod · 0.85

Calls 5

insertMethod · 0.80
cidMethod · 0.45
to_vecMethod · 0.45
intoMethod · 0.45
to_u8Method · 0.45

Tested by

no test coverage detected