GattCharacteristic.ValueChanged GattCharacteristic.ValueChanged GattCharacteristic.ValueChanged GattCharacteristic.ValueChanged GattCharacteristic.ValueChanged Event

Definition

An App can register an event handler in order to receive events when notification or indications are received from a device, after setting the Client Characteristic Configuration Descriptor.

public : event TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs> ValueChanged
// Register
event_token ValueChanged(TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs> const& handler) const;

// Revoke with event_token
void ValueChanged(event_token const& cookie) const;

// Revoke with event_revoker
ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs> const& handler) const;
public event TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs> ValueChanged
Public Event ValueChanged As TypedEventHandler (Of GattCharacteristic, GattValueChangedEventArgs)
function onValueChanged(eventArgs){/* Your code */}


gattCharacteristic.addEventListener("valuechanged", onValueChanged);
gattCharacteristic.removeEventListener("valuechanged", onValueChanged);

Remarks

The GattValueChangedEventArgs object represents the arguments received by a ValueChanged event handler used to process characteristic value change notification and indication events sent by a Bluetooth LE device.

See also