Skip to content

bleio: cccd not properly set after Peripheral was added to a Service? #1556

@edwios

Description

@edwios

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions