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

Function get_characteristic_value

src/corebluetooth/central_delegate.rs:895–900  ·  view source on GitHub ↗
(characteristic: &CBCharacteristic)

Source from the content-addressed store, hash-verified

893}
894
895fn get_characteristic_value(characteristic: &CBCharacteristic) -> Vec<u8> {
896 trace!("Getting data!");
897 let v = unsafe { characteristic.value() }.map(|value| value.bytes().into());
898 trace!("BluetoothGATTCharacteristic::get_value -> {:?}", v);
899 v.unwrap_or_default()
900}
901
902fn get_descriptor_value(descriptor: &CBDescriptor) -> Vec<u8> {
903 trace!("Getting data!");

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected