simulateValueUpdate

fun simulateValueUpdate(handle: Int, value: ByteArray)

Simulates a characteristic value update on the peripheral.

This will notify all connected clients that the value has changed.

The handle number is returned when creating the characteristic using PeripheralSpec.Builder.connectable from ServiceScope.Characteristic.

Parameters

handle

The handle of the characteristic.

value

The new value of the characteristic.