h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
670 stars 138 forks source link

Add generic advertisement 'type' functions #575

Closed jcontrerasf closed 7 months ago

jcontrerasf commented 11 months ago

Adds NimBLEAdvertisedDevice::getPayloadByType to get data from the advertisement by "BLE_HS_ADV_TYPE...".

Adds NimBLEAdvertisedDevice::haveType to check if the advertisement have "BLE_HS_ADV_TYPE...".