[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
payload.

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`

![image](https://user-images.githubusercontent.com/23060007/128000996-c1e51ee2-0525-471a-90d6-0e5af652b3dd.png)
![image](https://user-images.githubusercontent.com/23060007/128001022-353b853c-d6b7-413d-891f-81e9e248476c.png)






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

  https://github.com/RIOT-OS/RIOT/pull/16703

-- 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 --

https://github.com/RIOT-OS/RIOT/pull/16703.patch
https://github.com/RIOT-OS/RIOT/pull/16703.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16703
-------------- 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