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

Method write

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

Source from the content-addressed store, hash-verified

227 }
228
229 pub fn write(
230 &self,
231 uuid: JUuid<'a, 'b>,
232 data: JObject<'a>,
233 write_type: jint,
234 ) -> Result<JFuture<'a, 'b>> {
235 let future_obj = self
236 .env
237 .call_method_unchecked(
238 self.internal,
239 self.write,
240 JavaType::Object("Lio/github/gedgygedgy/rust/future/Future;".to_string()),
241 &[uuid.into(), data.into(), write_type.into()],
242 )?
243 .l()?;
244 JFuture::from_env(self.env, future_obj)
245 }
246
247 pub fn set_characteristic_notification(
248 &self,

Callers 8

test_write_with_responseFunction · 0.45
send_control_commandFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls