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
|
||||
|
||||
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) {
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "esp_wifi.h"
|
||||
#include <string>
|
||||
|
||||
extern WiFi bmWiFi;
|
||||
|
||||
class WiFi {
|
||||
public:
|
||||
static void init();
|
||||
|
||||
@@ -16,7 +16,6 @@ extern "C" void app_main() {
|
||||
}
|
||||
ESP_ERROR_CHECK(ret);
|
||||
|
||||
WiFi bmWiFi;
|
||||
bmWiFi.init();
|
||||
|
||||
nvs_handle_t WiFiHandle;
|
||||
|
||||
Reference in New Issue
Block a user