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

Method _set_ping_slot_parameters

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

Source from the content-addressed store, hash-verified

1468 }
1469
1470 async fn _set_ping_slot_parameters(&mut self) -> Result<()> {
1471 trace!("Setting ping-slot parameters");
1472
1473 let ds = self.device.get_device_session_mut()?;
1474
1475 if !self.device_profile.supports_class_b {
1476 return Ok(());
1477 }
1478
1479 if ds.class_b_ping_slot_dr as u8 != self.network_conf.class_b.ping_slot_dr
1480 || ds.class_b_ping_slot_freq != self.network_conf.class_b.ping_slot_frequency
1481 {
1482 let set = maccommand::ping_slot_channel::request(
1483 self.network_conf.class_b.ping_slot_dr,
1484 self.network_conf.class_b.ping_slot_frequency,
1485 );
1486 self.mac_commands.push(set);
1487 }
1488
1489 Ok(())
1490 }
1491
1492 async fn _set_rx_parameters(&mut self) -> Result<()> {
1493 trace!("Setting rx parameters");

Callers 1

set_mac_commandsMethod · 0.80

Calls 3

pushMethod · 0.80
requestFunction · 0.50

Tested by

no test coverage detected