add some feature

This commit is contained in:
sharandac
2020-07-10 02:39:51 +02:00
parent 9299ec6fd3
commit 2994b21daf
9 changed files with 231 additions and 56 deletions

View File

@@ -6,6 +6,7 @@
#include "wifictl.h"
#include "gui/statusbar.h"
#include "webserver/webserver.h"
bool wifi_init = false;
TaskHandle_t _WIFICTL_Task;
@@ -76,6 +77,7 @@ void wifictl_setup( void ) {
statusbar_style_icon( STATUSBAR_WIFI, STATUSBAR_STYLE_WHITE );
statusbar_show_icon( STATUSBAR_WIFI );
statusbar_wifi_set_state( true, wifiname );
asyncwebserver_setup();
}, WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP );
WiFi.onEvent([](WiFiEvent_t event, WiFiEventInfo_t info) {