Types

Link copied to clipboard
@Serializable
data class CharacteristicOperationReceived(val characteristicId: String, val type: CharacteristicOperationType, val data: String? = null, val writeType: CharacteristicWriteType? = null) : BluetoothEmulationEvent

Event for when a characteristic operation of |type| to the characteristic respresented by |characteristicId| happened. |data| and |writeType| is expected to exist when |type| is write.

Link copied to clipboard
@Serializable
data class DescriptorOperationReceived(val descriptorId: String, val type: DescriptorOperationType, val data: String? = null) : BluetoothEmulationEvent

Event for when a descriptor operation of |type| to the descriptor respresented by |descriptorId| happened. |data| is expected to exist when |type| is write.

Link copied to clipboard
@Serializable
data class GattOperationReceived(val address: String, val type: GATTOperationType) : BluetoothEmulationEvent

Event for when a GATT operation of |type| to the peripheral with |address| happened.