blatann.examples.peripheral_descriptors module

This example shows how to add descriptors to a characteristic in a GATT Database.

This can be used with the central_descriptor example running on a separate nordic device or can be run with the nRF Connect app

blatann.examples.peripheral_descriptors.on_connect(peer, event_args)

Event callback for when a central device connects to us

Parameters
blatann.examples.peripheral_descriptors.on_disconnect(peer, event_args)

Event callback for when the client disconnects from us (or when we disconnect from the client)

Parameters
blatann.examples.peripheral_descriptors.on_read(characteristic, event_args)

On read for the Time characteristic. Updates the characteristic with the current UTC time as a 32-bit number

blatann.examples.peripheral_descriptors.main(serial_port)