Method: BLE::Characteristic#async_read
- Defined in:
- lib/ble/characteristic.rb
#async_read(raw: false) ⇒ Object
60 61 62 63 64 65 66 67 |
# File 'lib/ble/characteristic.rb', line 60 def async_read(raw: false) return Concurrent::Promise.execute do @dbus_obj[I_GATT_CHARACTERISTIC].ReadValue() do |result| val= result.first val= _deserialize_value(val, raw: raw) end end end |