Active BLE scan

banjoluck
Posts: 25
Joined: Fri Jul 29, 2022 5:11 pm

Active BLE scan

Postby banjoluck » Mon Sep 19, 2022 9:41 pm

Greetings,

We want to use the ESP32 as BLE central. The data we need to see in the advertisements is in the scan-response and not in the initial advertisement packet. So, we perform these setups and watch for BLESCAN messages:

at+bleinit=1
at+blescanparam=1,0,0,100,99
at+blescan=1

Yet, all of the scan results look sort-of like this:

+BLESCAN:"f7:dc:a4:ff:df:b7",-52,0201060b09656c6576656e706c7573051218005000020afe,,0

We have not seen any responses with the scan-response field filled-in. Are we starting the scan correctly to perform an active scan? We expect the scan response in the field before the final ",0".

Cheers

banjoluck
Posts: 25
Joined: Fri Jul 29, 2022 5:11 pm

Re: Active BLE scan

Postby banjoluck » Mon Sep 19, 2022 9:46 pm

I think we found the reason it wasn't working. We were missing these entries due to a broken regular expression.

Who is online

Users browsing this forum: No registered users and 12 guests