Merge pull request #187 from biveraxe/ver4dev

Переносим глобальные переменные в класс для обеспечения
This commit is contained in:
2022-09-05 17:08:14 +03:00
committed by GitHub

View File

@@ -1,14 +1,14 @@
#include "Global.h"
#include "classes/IoTItem.h"
String _prevMsg = "";
String _token;
unsigned long _chatID;
class TelegramLT : public IoTItem
{
public:
String _prevMsg = "";
String _token;
unsigned long _chatID;
TelegramLT(String parameters) : IoTItem(parameters) {
jsonRead(parameters, "token", _token);
jsonRead(parameters, "chatID", _chatID);