Hi,
I have the following piece of code, however when I run it, it returned CCCD error:
OSError: Failed to read CCCD value, err 0x3002
chara = bleio.Characteristic(uuid_char_temp, notify=True, read=True, write=False)
serv = bleio.Service(uuid_env_sense, [chara])
periph = bleio.Peripheral([serv], name="BME680")
periph.start_advertising()
while True:
send_temp()
time.sleep(5)
send_temp() is essentially chara.value = bytearray([temp & 0xFF, temp >> 8])
Did I missed anything?
Note: Circuitpython master tree on Feb 8th, nRF52840 dongle
Regards,
Ed
Hi,
I have the following piece of code, however when I run it, it returned CCCD error:
OSError: Failed to read CCCD value, err 0x3002
send_temp()is essentiallychara.value = bytearray([temp & 0xFF, temp >> 8])Did I missed anything?
Note: Circuitpython master tree on Feb 8th, nRF52840 dongle
Regards,
Ed