Function
get_characteristic_value
(characteristic: &CBCharacteristic)
Source from the content-addressed store, hash-verified
| 893 | } |
| 894 | |
| 895 | fn 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 | |
| 902 | fn get_descriptor_value(descriptor: &CBDescriptor) -> Vec<u8> { |
| 903 | trace!("Getting data!"); |
Callers
nothing calls this directly
Tested by
no test coverage detected