![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint8_t * ble_adv_data_parse | ( | const uint8_t * | buf, |
| uint16_t | len, | ||
| uint8_t | ad_type ) |
#include <ble_adv_data.h>
Parse encoded Advertising or Scan Response data.
This function searches through encoded data or the data found in Advertising reports returns a pointer directly to the data within the data buffer.
Example code: ad_type_data = ble_adv_data_parse(&data, len, AD_TYPE);
| [in] | buf | Encoded advertising data. |
| [in] | len | Buffer length. |
| [in] | ad_type | Type of data to search for. |
NULL if no data was found with the type ad_type, or if buf was NULL.