mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Merge pull request #187 from biveraxe/ver4dev
Переносим глобальные переменные в класс для обеспечения
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user