Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GattCharacteristic.ValueChanged | valuechanged event

Applies to Windows and Windows Phone

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.

Syntax


function onValueChanged(eventArgs) { /* Your code */ }
 
// addEventListener syntax
gattCharacteristic.addEventListener("valuechanged", onValueChanged);
gattCharacteristic.removeEventListener("valuechanged", onValueChanged);
 
- or -

gattCharacteristic.onvaluechanged = onValueChanged;


Event information

Delegate TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs>

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Bluetooth.GenericAttributeProfile
Windows::Devices::Bluetooth::GenericAttributeProfile [C++]

Metadata

Windows.winmd

See also

GattCharacteristic

 

 

Show:
© 2014 Microsoft