mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
fix(nimble): Expose adv_find_field API so application can parse specific AD types in adv reports
This commit is contained in:
@@ -233,6 +233,9 @@ int ble_hs_adv_parse_fields(struct ble_hs_adv_fields *adv_fields,
|
||||
int ble_hs_adv_parse(const uint8_t *data, uint8_t length,
|
||||
ble_hs_adv_parse_func_t func, void *user_data);
|
||||
|
||||
int ble_hs_adv_find_field(uint8_t type, const uint8_t *data, uint8_t length,
|
||||
const struct ble_hs_adv_field **out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -26,8 +26,6 @@ extern "C" {
|
||||
|
||||
int ble_hs_adv_set_flat(uint8_t type, int data_len, const void *data,
|
||||
uint8_t *dst, uint8_t *dst_len, uint8_t max_len);
|
||||
int ble_hs_adv_find_field(uint8_t type, const uint8_t *data, uint8_t length,
|
||||
const struct ble_hs_adv_field **out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user