Skip to main content

write_characteristic

Function write_characteristic 

Source
pub fn write_characteristic(
    env: Env,
    gatt: JObject,
    characteristic: JObject,
    value: &[u8],
    write_type: i32,
) -> Result<bool, Error>
Expand description

Write a characteristic, using whichever API this device has.

API 33 replaced the set-then-write pair with a single call, and deprecated the old one. Both are tried, newest first, because a library cannot pick at build time what the device will offer at run time.