mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
Переносим глобальные переменные в класс для обеспечения
возможности работы нескольких экземпляров Телеги
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
#include "classes/IoTItem.h"
|
#include "classes/IoTItem.h"
|
||||||
|
|
||||||
String _prevMsg = "";
|
|
||||||
String _token;
|
|
||||||
unsigned long _chatID;
|
|
||||||
|
|
||||||
class TelegramLT : public IoTItem
|
class TelegramLT : public IoTItem
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
String _prevMsg = "";
|
||||||
|
String _token;
|
||||||
|
unsigned long _chatID;
|
||||||
|
|
||||||
TelegramLT(String parameters) : IoTItem(parameters) {
|
TelegramLT(String parameters) : IoTItem(parameters) {
|
||||||
jsonRead(parameters, "token", _token);
|
jsonRead(parameters, "token", _token);
|
||||||
jsonRead(parameters, "chatID", _chatID);
|
jsonRead(parameters, "chatID", _chatID);
|
||||||
|
|||||||
Reference in New Issue
Block a user