Replace Wemos D1 mini with Wemos D1 mini ESP32
This commit is contained in:
@@ -3,12 +3,11 @@
|
||||
|
||||
#include "config.h"
|
||||
#include <AsyncMqttClient.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <Ticker.h>
|
||||
#include <WiFi.h>
|
||||
|
||||
static AsyncMqttClient mqtt_client;
|
||||
static Ticker mqtt_connection_timer, wlan_connection_timer;
|
||||
static WiFiEventHandler connection_handler, disconnection_handler;
|
||||
extern Config *config;
|
||||
|
||||
void initialize_wlan();
|
||||
@@ -19,9 +18,7 @@ void connect_wlan();
|
||||
|
||||
void connect_mqtt();
|
||||
|
||||
void on_wlan_connection(const WiFiEventStationModeGotIP &event);
|
||||
|
||||
void on_wlan_disconnection(const WiFiEventStationModeDisconnected &event);
|
||||
void wlan_connection_handler(WiFiEvent_t event);
|
||||
|
||||
void on_mqtt_connection(bool session);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user