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:
32
src/classes/IoTDiscovery.cpp
Normal file
32
src/classes/IoTDiscovery.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "Global.h"
|
||||
#include "classes/IoTDiscovery.h"
|
||||
#include "IoTDiscovery.h"
|
||||
|
||||
IoTDiscovery::IoTDiscovery(const String ¶meters) : IoTItem(parameters)
|
||||
{
|
||||
/* int _tx, _rx, _speed, _line;
|
||||
jsonRead(parameters, "rx", _rx);
|
||||
jsonRead(parameters, "tx", _tx);
|
||||
jsonRead(parameters, "speed", _speed);
|
||||
jsonRead(parameters, "line", _line);
|
||||
*/
|
||||
//ChipId = getChipId();
|
||||
}
|
||||
|
||||
void IoTDiscovery::publishStatusHOMEd(const String &topic, const String &data) {}
|
||||
void IoTDiscovery::getlayoutHA() {}
|
||||
void IoTDiscovery::getlayoutHOMEd() {}
|
||||
void IoTDiscovery::deleteFromHOMEd() {}
|
||||
void IoTDiscovery::mqttSubscribeDiscovery(){}
|
||||
|
||||
boolean IoTDiscovery::publishRetain(const String &topic, const String &data)
|
||||
{
|
||||
if (mqtt.beginPublish(topic.c_str(), data.length(), true))
|
||||
{
|
||||
mqtt.print(data);
|
||||
return mqtt.endPublish();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
IoTDiscovery::~IoTDiscovery() {}
|
||||
Reference in New Issue
Block a user