mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(nimble): Add AD type macros in example
This commit is contained in:
@@ -29,9 +29,9 @@ const uint8_t uuid_zeros[ESP_UUID_LEN_128] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
/* For iBeacon packet format, please refer to Apple "Proximity Beacon Specification" doc */
|
||||
/* Constant part of iBeacon data */
|
||||
esp_ble_ibeacon_head_t ibeacon_common_head = {
|
||||
.flags = {0x02, 0x01, 0x06},
|
||||
.flags = {0x02, ESP_BLE_AD_TYPE_FLAG, ESP_BLE_ADV_FLAG_GEN_DISC | ESP_BLE_ADV_FLAG_BREDR_NOT_SPT},
|
||||
.length = 0x1A,
|
||||
.type = 0xFF,
|
||||
.type = ESP_BLE_AD_MANUFACTURER_SPECIFIC_TYPE,
|
||||
.company_id = 0x004C,
|
||||
.beacon_type = 0x1502
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user