Homey v6.0.0
How to upgrade to Homey v6.0.0
BLE Notifications
// Subscribe to notifications
await characteristic.subscribeToNotifications((data) => {
this.log("I received a notification: ", data);
});
// Wait for 5 seconds
await wait(5000);
// Unsubscribe from the notifications
await characteristic.unsubscribeFromNotifications();Disconnect event
// Register a callback for when the peripheral disconnects
peripheral.on("disconnect", () => {
this.log("Disconnected from peripheral: ", peripheral.uuid);
});Addressed BLE caching issues
(Deprecation) 128bit UUID convention
Last updated
Was this helpful?