invoke
Generates a GattResponse.ReadSuccess response for a value T
Return
a GattResponse.ReadSuccess response where GattResponse.ReadSuccess.value can be deserialized by bluetoothFormat using a kotlinx.serialization.DeserializationStrategy similar to serializationStrategy
Parameters
the value read
the offset of the ByteArray to read
the SerializationStrategy used to encode value
the BluetoothFormat to use for encoding value
Type Parameters
the type of the value read
Throws
if value cannot be encoded using serializationStrategy
Generates a GattResponse.ReadSuccess response for a value T
Return
a GattResponse.ReadSuccess response where GattResponse.ReadSuccess.value can be deserialized by bluetoothFormat
Parameters
the value read
the offset of the ByteArray to read
the BluetoothFormat to use for encoding value
Type Parameters
the type of the value read
Throws
if value cannot be encoded