forked from noble/noble
-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
async function cubeNotify(characteristic) {
console.log(`notifyID:${characteristic.uuid}`);
await characteristic.subscribe((error) => {
if (error) {
console.error(`subscribe fail: ${error}`);
} else {
console.log('subscribe success');
}
});
characteristic.on('data', (data) => {
if (data.length === 0) {
return;
}
console.log(data);
});
}
This code works fine on Windows. It doesn't work on MacOS. The subscription success message is printed. But no data is received. What did I miss?. I need help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels