Page 1 of 1

Advertised service UUIDs appearing multiple times

Posted: Wed Apr 26, 2023 6:39 am
by sameer_kelaskar
Hello,

I have implemented a BLE GATT server in ESP-IDF v4.3.1 on ESP32-WROVER ESP32-DEVKITC and to connect I am using the LightBlue app. In the app when I connect to the esp module, under the advertisement data, the advertised service UUIDs appear multiple time(though they are identical).
In the code I have used raw data as service UUID, also I tried changing the values of UUID they do get reflected in in app it is just that they appear twice. It should appear only one and the lates value of UUID id changed. This problem appears on android as well as iOS.
All kind help is appreciated.

Many thanks,
Sameer

Re: Advertised service UUIDs appearing multiple times

Posted: Wed Apr 26, 2023 5:38 pm
by MicroController
In the code I have used raw data as service UUID
That doesn't sound right.

In the raw packet data it seems that there are two advertisements included, both beginning with the flags field (0x02 0x01 0x06) and both including the 0x1207 service uuid (bytes: 0x03 0x03 0x07 0x12). So somehow the advertisement data gets added twice.

Did you use esp_ble_gap_config_adv_data_raw(...)?