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

Method _request_rejoin_param_setup

chirpstack/src/downlink/data.rs:1444–1468  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1442 }
1443
1444 async fn _request_rejoin_param_setup(&mut self) -> Result<()> {
1445 trace!("Requesting rejoin param setup");
1446
1447 let ds = self.device.get_device_session_mut()?;
1448
1449 // Rejoin-request is disabled or device does not support LoRaWAN 1.1.
1450 if !self.network_conf.rejoin_request.enabled
1451 || ds.mac_version().to_string().starts_with("1.0")
1452 {
1453 return Ok(());
1454 }
1455
1456 if !ds.rejoin_request_enabled
1457 || ds.rejoin_request_max_count_n as u8 != self.network_conf.rejoin_request.max_count_n
1458 || ds.rejoin_request_max_time_n as u8 != self.network_conf.rejoin_request.max_time_n
1459 {
1460 let set = maccommand::rejoin_param_setup::request(
1461 self.network_conf.rejoin_request.max_time_n,
1462 self.network_conf.rejoin_request.max_count_n,
1463 );
1464 self.mac_commands.push(set);
1465 }
1466
1467 Ok(())
1468 }
1469
1470 async fn _set_ping_slot_parameters(&mut self) -> Result<()> {
1471 trace!("Setting ping-slot parameters");

Callers 1

set_mac_commandsMethod · 0.80

Calls 4

to_stringMethod · 0.80
pushMethod · 0.80
requestFunction · 0.50

Tested by

no test coverage detected