mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Show IP address on connect
This commit is contained in:
parent
3593ce20b3
commit
57569e7b06
@ -67,6 +67,12 @@ static void wifiConnected(IPAddress ipaddress)
|
|||||||
#endif
|
#endif
|
||||||
LOG_TRACE(TAG_WIFI, F(D_NETWORK_IP_ADDRESS_RECEIVED), wifiIpAddress);
|
LOG_TRACE(TAG_WIFI, F(D_NETWORK_IP_ADDRESS_RECEIVED), wifiIpAddress);
|
||||||
|
|
||||||
|
lv_obj_t* msgbox = lv_msgbox_create(lv_layer_sys(), NULL);
|
||||||
|
lv_msgbox_set_text_fmt(msgbox, wifiIpAddress);
|
||||||
|
lv_msgbox_start_auto_close(msgbox, 4000);
|
||||||
|
lv_msgbox_set_anim_time(msgbox, 0);
|
||||||
|
lv_obj_move_background(msgbox);
|
||||||
|
|
||||||
LOG_VERBOSE(TAG_WIFI, F("Connected = %s"),
|
LOG_VERBOSE(TAG_WIFI, F("Connected = %s"),
|
||||||
WiFi.status() == WL_CONNECTED ? PSTR(D_NETWORK_ONLINE) : PSTR(D_NETWORK_OFFLINE));
|
WiFi.status() == WL_CONNECTED ? PSTR(D_NETWORK_ONLINE) : PSTR(D_NETWORK_OFFLINE));
|
||||||
networkStart();
|
networkStart();
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#define HASP_OTA_H
|
#define HASP_OTA_H
|
||||||
|
|
||||||
#include "ArduinoJson.h"
|
#include "ArduinoJson.h"
|
||||||
|
#include <ArduinoOTA.h>
|
||||||
|
|
||||||
/* ===== Default Event Processors ===== */
|
/* ===== Default Event Processors ===== */
|
||||||
void otaSetup(void);
|
void otaSetup(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user