Bluetooth Framework C++ Edition

◆ OnCharacteristicChanged()

__event void OnCharacteristicChanged ( void *  Sender,
const unsigned short  Handle,
const unsigned char *const  Value,
unsigned long const  Length 
)

The event fires when a subscribed characteristic value has been changed.

Parameters
SenderThe object initiates the event.
HandleA changed characteristic handle.
ValueA pointer to the characteristic value.
LengthA characteristic value length in bytes.

The Value parameter is valid only inside the event handler. If an application needs to use it outside the event handler it must be copied.

To receive characteristic value change events an application must first subscribe for characteristic changes notification by calling Subscribe method.