perf: tune BLE scanning performance, switch over to NimBLE
This commit is contained in:
@@ -16,4 +16,5 @@ idf_component_register(
|
||||
app_update
|
||||
driver
|
||||
esp_driver_gpio
|
||||
esp_coex
|
||||
)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "led_indicator.h"
|
||||
#include "ota_manager.h"
|
||||
#include "esp_ota_ops.h"
|
||||
#include "esp_coexist.h"
|
||||
|
||||
#include "esp_wifi.h"
|
||||
#include "esp_event.h"
|
||||
@@ -236,6 +237,8 @@ void app_main(void)
|
||||
ESP_LOGI(TAG, "OTA rollback cancelled - firmware validated");
|
||||
}
|
||||
|
||||
esp_coex_preference_set(ESP_COEX_PREFER_BALANCE);
|
||||
|
||||
// init BLE scanner
|
||||
ble_scanner_init(on_ble_scan_result);
|
||||
ble_scanner_start();
|
||||
|
||||
Reference in New Issue
Block a user