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

Method read_rssi

src/bluez/peripheral.rs:285–288  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

283 }
284
285 async fn read_rssi(&self) -> Result<i16> {
286 let device_info = self.device_info().await?;
287 device_info.rssi.ok_or(Error::NotConnected)
288 }
289
290 async fn write_descriptor(&self, descriptor: &Descriptor, data: &[u8]) -> Result<()> {
291 let descriptor_info = self.descriptor_info(descriptor)?;

Callers 1

test_read_rssiFunction · 0.45

Calls 1

device_infoMethod · 0.80

Tested by 1

test_read_rssiFunction · 0.36