wifi object moved
This commit is contained in:
@@ -11,6 +11,8 @@ esp_event_handler_instance_t WiFi::instance_got_ip = NULL;
|
|||||||
|
|
||||||
#define WIFI_CONNECTED_BIT BIT0
|
#define WIFI_CONNECTED_BIT BIT0
|
||||||
|
|
||||||
|
WiFi bmWiFi;
|
||||||
|
|
||||||
// The Event Handler (The engine room)
|
// The Event Handler (The engine room)
|
||||||
void WiFi::event_handler(void* arg, esp_event_base_t event_base,
|
void WiFi::event_handler(void* arg, esp_event_base_t event_base,
|
||||||
int32_t event_id, void* event_data) {
|
int32_t event_id, void* event_data) {
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
#include "esp_wifi.h"
|
#include "esp_wifi.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
extern WiFi bmWiFi;
|
||||||
|
|
||||||
class WiFi {
|
class WiFi {
|
||||||
public:
|
public:
|
||||||
static void init();
|
static void init();
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ extern "C" void app_main() {
|
|||||||
}
|
}
|
||||||
ESP_ERROR_CHECK(ret);
|
ESP_ERROR_CHECK(ret);
|
||||||
|
|
||||||
WiFi bmWiFi;
|
|
||||||
bmWiFi.init();
|
bmWiFi.init();
|
||||||
|
|
||||||
nvs_handle_t WiFiHandle;
|
nvs_handle_t WiFiHandle;
|
||||||
|
|||||||
Reference in New Issue
Block a user