nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_adv_data_manufacturer_data_find()

bool ble_adv_data_manufacturer_data_find ( const uint8_t * buf,
uint16_t len,
const uint8_t * target_data,
uint8_t target_data_len )

#include <ble_adv_data.h>

Search encoded Advertising data for manufacturer-specific data.

Parameters
[in]bufEncoded advertising data.
[in]lenBuffer length.
[in]target_dataTarget manufacturer data to match (prefix). Starts with the 2-byte little-endian company identifier followed by optional vendor payload.
[in]target_data_lenLength of the target manufacturer data.
Return values
trueIf manufacturer-specific data in which the first target_data_len bytes matches target_data was found among buf.
falseIf no match was found among buf, or if buf or target_data was NULL.