Open aguileraGit opened 4 years ago
If you read that characteristic after writing, does it reflect the value that you wrote? In your log it looks like the value read was null
.
@aguileraGit you have to write the CCCD
enable notify value to the descriptor not the characteristic. You can do that by getting the handle
for the characteristics and adding 1 to it to get the descriptor handle. And use the write command to send the 0x01 value.
# Descriptor update to CCCD and enable task self.p.writeCharacteristic(self.characteristic_handle+1, b"\x01\x00", True)
I don't ever receive notifications from Characteristic 6E400006-B5A3-F393-E0A9-E50E24DCCA9E. I must enable the sensor by writing 0x01 to Characteristic 6E400009-B5A3-F393-E0A9-E50E24DCCA9E.
Verified Services and Characteristics using LightBlue iOS App. Log:
My Python App:
Results: