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

Method get_device_session

chirpstack/src/storage/device.rs:153–157  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

151 }
152
153 pub fn get_device_session(&self) -> Result<&internal::DeviceSession, Error> {
154 self.device_session
155 .as_deref()
156 .ok_or_else(|| Error::NotFound(self.dev_eui.to_string()))
157 }
158
159 pub fn get_device_session_mut(&mut self) -> Result<&mut internal::DeviceSession, Error> {
160 self.device_session

Calls 1

to_stringMethod · 0.80

Tested by 14

test_sns_uplinkFunction · 0.64
n_f_cnt_downFunction · 0.64
a_f_cnt_downFunction · 0.64
tx_power_indexFunction · 0.64
nb_transFunction · 0.64
drFunction · 0.64
mac_command_error_countFunction · 0.64
uplink_adr_historyFunction · 0.64
device_sessionFunction · 0.64
test_lorawan_10Function · 0.64