MCPcopy Create free account
hub / github.com/deviceplug/btleplug / read_rssi

Method read_rssi

src/winrtble/peripheral.rs:644–650  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

642 }
643
644 async fn read_rssi(&self) -> Result<i16> {
645 self.shared
646 .last_rssi
647 .read()
648 .unwrap()
649 .ok_or(Error::NotConnected)
650 }
651
652 async fn connection_parameters(&self) -> Result<Option<ConnectionParameters>> {
653 let device = self.shared.device.lock().await;

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected