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

Method write_descriptor

src/droidplug/jni/objects.rs:374–390  ·  view source on GitHub ↗
(
        &self,
        characteristic: JUuid<'a, 'b>,
        uuid: JUuid<'a, 'b>,
        data: JObject<'a>,
    )

Source from the content-addressed store, hash-verified

372 }
373
374 pub fn write_descriptor(
375 &self,
376 characteristic: JUuid<'a, 'b>,
377 uuid: JUuid<'a, 'b>,
378 data: JObject<'a>,
379 ) -> Result<JFuture<'a, 'b>> {
380 let future_obj = self
381 .env
382 .call_method_unchecked(
383 self.internal,
384 self.write_descriptor,
385 JavaType::Object("Lio/github/gedgygedgy/rust/future/Future;".to_string()),
386 &[characteristic.into(), uuid.into(), data.into()],
387 )?
388 .l()?;
389 JFuture::from_env(self.env, future_obj)
390 }
391}
392
393pub struct JBluetoothGattService<'a: 'b, 'b> {

Callers 1

Calls

no outgoing calls

Tested by 1