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

Method characteristics

src/api/mod.rs:276–281  ·  view source on GitHub ↗

The set of characteristics we've discovered for this device. This will be empty until `discover_services` is called.

(&self)

Source from the content-addressed store, hash-verified

274 /// The set of characteristics we've discovered for this device. This will be empty until
275 /// `discover_services` is called.
276 fn characteristics(&self) -> BTreeSet<Characteristic> {
277 self.services()
278 .iter()
279 .flat_map(|service| service.characteristics.clone().into_iter())
280 .collect()
281 }
282
283 /// Returns true iff we are currently connected to the device.
284 async fn is_connected(&self) -> Result<bool>;

Callers 5

send_control_commandFunction · 0.45
find_characteristicFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

iterMethod · 0.80
servicesMethod · 0.45

Tested by 1