используем везде isNetworkActive()

This commit is contained in:
DmitriyTychina
2023-09-03 19:33:40 +03:00
parent 646128b999
commit 93dfa8ee83
7 changed files with 8 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ public:
void doByInterval()
{
if (WiFi.status() == WL_CONNECTED)
if (isNetworkActive())
{
String value = getItemValue(logid);
if (value != "")
@@ -55,7 +55,7 @@ public:
IoTValue execute(String command, std::vector<IoTValue> &param)
{
if (WiFi.status() == WL_CONNECTED)
if (isNetworkActive())
{
if (command == F("logGoogle"))
{ // Логирование определенного элемента по его идентификатору в GoogleSheet

View File

@@ -26,7 +26,7 @@ public:
{
String ret;
if (WiFi.status() == WL_CONNECTED)
if (isNetworkActive())
{
// char c;
String payload;