Hi,
I am working on a project where I have 4 advertising beacons which will have to trigger some functions in the central side when it gets the advertising data. Now I am currently working on the central(ble_app_uart) side which will have to check each advertising packet, and from this it has to identify which beacon it is. In the beacon program I use the example code ble_app_beacon, what is the best way to identify each beacon? I thought maybe just use the 128 bit UUID but I am unsure how to implement this in the central side or if it is the best solution.
I know about this function:
static bool is_uuid_present(const ble_uuid_t *p_target_uuid, const ble_gap_evt_adv_report_t *p_adv_report)
But ble_uuid_t is a 16 bit service UUID for the UART:
typedef struct { uint16_t uuid; /*< 16-bit UUID value or octets 12-13 of 128-bit UUID. */ uint8_t type; /*< UUID type, see @ref BLE_UUID_TYPES. If type is @ref BLE_UUID_TYPE_UNKNOWN, the value of uuid is undefined. */ } ble_uuid_t;
-Erblin