re structure
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
#include <HTTPClient.h>
|
||||
#include <PubSubClient.h>
|
||||
|
||||
// https://github.com/Netthaw/TOTP-MCU
|
||||
#include "totp.h"
|
||||
#include <totp.hpp>
|
||||
|
||||
#define LGFX_M5PAPER
|
||||
#define LGFX_USE_V1
|
||||
@@ -167,6 +166,11 @@ void send(String state)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!WiFi.isConnected())
|
||||
{
|
||||
resetWifi();
|
||||
}
|
||||
|
||||
if (client->connect(SETTINGS->gettext("mqtt:ident"), SETTINGS->gettext("mqtt:username"), SETTINGS->gettext("mqtt:password")))
|
||||
{
|
||||
client->unsubscribe(SETTINGS->gettext("mqtt:state_topic"));
|
||||
|
Reference in New Issue
Block a user