bug in api esp_ble_mesh_start_ble_scanning?

qiuyonggang
Posts: 11
Joined: Tue Feb 07, 2023 6:26 am

bug in api esp_ble_mesh_start_ble_scanning?

Postby qiuyonggang » Wed May 01, 2024 3:52 am

Hi,
We developed our program used IDF5.0,we try to let ble mesh node to scan BLE advertising packets.So we followed the advice in "https://docs.espressif.com/projects/esp ... is-enabled" ,codes like this:
esp_err_t status;
if ((status = esp_ble_mesh_register_ble_callback(esp_ble_mesh_ble_cb)) != ESP_OK) {
return;
}
esp_ble_mesh_start_ble_scanning(&mesh_ble_scan_params);

These codes worked,but we found ESP_BLE_MESH_SCAN_BLE_ADVERTISING_PKT_EVT just can be recieved about every 30s.We changed mesh_ble_scan_params's duration,but it had no effect.
Our question is how to set the interval of scan?
Thanks very much.

snutw_
Posts: 34
Joined: Wed Aug 21, 2024 1:48 pm

Re: bug in api esp_ble_mesh_start_ble_scanning?

Postby snutw_ » Tue Nov 19, 2024 6:47 am

Well no wonder - since esp_ble_mesh_start_ble_scanning is not using its argument... :/
(though I would prefer to have just an option to have this done indefinietly long)
Am I right that in order to receive BLE mesh advertising packets I need to have BLE coexistence set?

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Lobelois and 117 guests