mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Discovery HA and HomeD
This commit is contained in:
36
include/classes/IoTDiscovery.h
Normal file
36
include/classes/IoTDiscovery.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include "Global.h"
|
||||
#include "classes/IoTItem.h"
|
||||
|
||||
class IoTDiscovery : public IoTItem
|
||||
{
|
||||
public:
|
||||
IoTDiscovery(const String ¶meters);
|
||||
~IoTDiscovery();
|
||||
|
||||
// inline bool isDiscoveryHomed() { return HOMEd; }
|
||||
|
||||
// inline bool isDiscoveryHA() { return HA; }
|
||||
|
||||
String HOMEdTopic = "";
|
||||
String HATopic = "";
|
||||
//String ChipId = "";
|
||||
|
||||
virtual void mqttSubscribeDiscovery();
|
||||
|
||||
virtual void publishStatusHOMEd(const String &topic, const String &data);
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
boolean publishRetain(const String &topic, const String &data);
|
||||
virtual void getlayoutHA();
|
||||
virtual void deleteFromHOMEd();
|
||||
virtual void getlayoutHOMEd();
|
||||
|
||||
//bool HOMEd = false;
|
||||
//bool HA = false;
|
||||
//String HOMEdTopic;
|
||||
|
||||
};
|
||||
@@ -59,6 +59,8 @@ class IoTItem {
|
||||
//virtual IoTBench* getBenchmark();
|
||||
virtual IoTBench*getBenchmarkTask();
|
||||
virtual IoTBench*getBenchmarkLoad();
|
||||
virtual IoTBench*getHADiscovery();
|
||||
virtual IoTBench*getHOMEdDiscovery();
|
||||
virtual unsigned long getRtcUnixTime();
|
||||
|
||||
// делаем доступным модулям отправку сообщений в телеграм
|
||||
|
||||
Reference in New Issue
Block a user