wifi object moved

This commit is contained in:
2025-12-17 13:53:42 -06:00
parent 3f099996e8
commit 285edfc5ec
3 changed files with 4 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ esp_event_handler_instance_t WiFi::instance_got_ip = NULL;
#define WIFI_CONNECTED_BIT BIT0
WiFi bmWiFi;
// The Event Handler (The engine room)
void WiFi::event_handler(void* arg, esp_event_base_t event_base,
int32_t event_id, void* event_data) {

View File

@@ -4,6 +4,8 @@
#include "esp_wifi.h"
#include <string>
extern WiFi bmWiFi;
class WiFi {
public:
static void init();

View File

@@ -16,7 +16,6 @@ extern "C" void app_main() {
}
ESP_ERROR_CHECK(ret);
WiFi bmWiFi;
bmWiFi.init();
nvs_handle_t WiFiHandle;