Skip to main content
Use this API to enable notifications for changes to a BLE device characteristic. The target characteristic must support notify or indicate. This must be called before my.onBLECharacteristicValueChange will receive updates pushed by the device, and is more efficient than repeatedly calling my.readBLECharacteristicValue.

Parameters

Code Example

Subscribing to notifications is recommended over polling with my.readBLECharacteristicValue. IDE simulation is not supported for this API — test on a real device.

my.onBLECharacteristicValueChange

Listen for value changes

my.writeBLECharacteristicValue

Write a characteristic value