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

Method check_for_first_uplink

chirpstack/src/downlink/data.rs:1058–1068  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1056 }
1057
1058 fn check_for_first_uplink(&self) -> Result<(), Error> {
1059 trace!("Checking if device has sent its first uplink already");
1060 self.device.get_device_session().map_err(|_| Error::Abort)?;
1061
1062 if self.device.f_cnt_up == 0 {
1063 debug!("Device must send its first uplink first");
1064 return Err(Error::Abort);
1065 }
1066
1067 Ok(())
1068 }
1069
1070 fn set_immediately(&mut self) -> Result<()> {
1071 trace!("Setting immediately flag");

Callers 1

Calls 1

get_device_sessionMethod · 0.80

Tested by

no test coverage detected