From cf739d00800e9b7427fd97e673dea22dcd9364a3 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Thu, 27 Jun 2024 16:30:23 -0300 Subject: [PATCH 1/3] Update WiFiProv.ino --- libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino b/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino index 5401c0cf286..a914207e1cd 100644 --- a/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino +++ b/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino @@ -53,6 +53,7 @@ void SysProvEvent(arduino_event_t *sys_event) { void setup() { Serial.begin(115200); + WiFi.begin(); // no SSID/PWD - get it from the Provisioning APP or from NVS (last successful connection) WiFi.onEvent(SysProvEvent); // BLE Provisioning using the ESP SoftAP Prov works fine for any BLE SoC, including ESP32, ESP32S3 and ESP32C3. From af3aed9159e5a7e9f5cc0662d3a88c0f99e23069 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Thu, 27 Jun 2024 18:00:58 -0300 Subject: [PATCH 2/3] fix(wifiprov): Uses BLE for provisioning --- libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino b/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino index a914207e1cd..3627d0aab3b 100644 --- a/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino +++ b/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino @@ -62,7 +62,7 @@ void setup() { // Sample uuid that user can pass during provisioning using BLE uint8_t uuid[16] = {0xb4, 0xdf, 0x5a, 0x1c, 0x3f, 0x6b, 0xf4, 0xbf, 0xea, 0x4a, 0x82, 0x03, 0x04, 0x90, 0x1a, 0x02}; WiFiProv.beginProvision( - WIFI_PROV_SCHEME_BLE, WIFI_PROV_SCHEME_HANDLER_FREE_BTDM, WIFI_PROV_SECURITY_1, pop, service_name, service_key, uuid, reset_provisioned + WIFI_PROV_SCHEME_BLE, WIFI_PROV_SCHEME_HANDLER_FREE_BLE, WIFI_PROV_SECURITY_1, pop, service_name, service_key, uuid, reset_provisioned ); log_d("ble qr"); WiFiProv.printQR(service_name, pop, "ble"); From 933401461e8a7f9b63eeabf915e4c764c72e8074 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:26:52 +0000 Subject: [PATCH 3/3] ci(pre-commit): Apply automatic fixes --- libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino b/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino index 3627d0aab3b..d07e472684f 100644 --- a/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino +++ b/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino @@ -53,7 +53,7 @@ void SysProvEvent(arduino_event_t *sys_event) { void setup() { Serial.begin(115200); - WiFi.begin(); // no SSID/PWD - get it from the Provisioning APP or from NVS (last successful connection) + WiFi.begin(); // no SSID/PWD - get it from the Provisioning APP or from NVS (last successful connection) WiFi.onEvent(SysProvEvent); // BLE Provisioning using the ESP SoftAP Prov works fine for any BLE SoC, including ESP32, ESP32S3 and ESP32C3.