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

Method get_uuid

src/droidplug/jni/objects.rs:432–444  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

430 }
431
432 pub fn get_uuid(&self) -> Result<Uuid> {
433 let obj = self
434 .env
435 .call_method_unchecked(
436 self.internal,
437 self.get_uuid,
438 JavaType::Object("Ljava/util/UUID;".to_string()),
439 &[],
440 )?
441 .l()?;
442 let uuid_obj = JUuid::from_env(self.env, obj)?;
443 Ok(uuid_obj.as_uuid()?)
444 }
445
446 pub fn get_characteristics(&self) -> Result<Vec<JBluetoothGattCharacteristic>> {
447 let obj = self

Callers 3

discover_servicesMethod · 0.80
notificationsMethod · 0.80
try_fromMethod · 0.80

Calls 1

as_uuidMethod · 0.80

Tested by

no test coverage detected