[riot-notifications] [RIOT-OS/RIOT] pkg/nimble/autoadv: make AD flag optionnal (#16703)

Francisco notifications at github.com
Tue Aug 3 12:29:40 CEST 2021

### Contribution description

These fields can be omitted if all other FLAGS are 0 and the advertising
packets are not connectable, allowing for 3 extra bytes for advertisement

In an application I need every byte I can get out of the advertisement packet so It's useful/required to gain these 3 extra bytes.

### Testing procedure

Flash with and without the flag set the FLAGS are then omitted from the payload:

`FLAGS=-DNIMBLE_AUTOADV_FLAG_FIELD=0 BOARD=nrf52840-mdk make -C examples/nimble_heart_rate_sensor/ flash term -j7`


You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * pkg/nimble/autoadv: make AD flag optionnal

-- File Changes --

    M pkg/nimble/autoadv/README.md (15)
    M pkg/nimble/autoadv/include/nimble_autoadv.h (11)
    M pkg/nimble/autoadv/nimble_autoadv.c (10)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210803/b88714f8/attachment-0001.htm>

More information about the notifications mailing list