mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
fix esp32c6 & add ble, Fix Date Log, add BL0942, upd Descovery
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "ESPConfiguration.h"
|
||||
#include "classes/IoTGpio.h"
|
||||
//#include "classes/IoTDiscovery.h"
|
||||
|
||||
extern IoTGpio IoTgpio;
|
||||
|
||||
@@ -52,6 +53,26 @@ void configure(String path) {
|
||||
}
|
||||
file.close();
|
||||
SerialPrint("i", "Config", "Configured");
|
||||
/*
|
||||
#ifdef ESP32
|
||||
if(HOMEdDiscovery)
|
||||
HOMEdDiscovery->mqttSubscribeDiscovery();
|
||||
if(HADiscovery)
|
||||
HADiscovery->mqttSubscribeDiscovery();
|
||||
// оттправляем все статусы
|
||||
if(HOMEdDiscovery || HADiscovery)
|
||||
{
|
||||
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it)
|
||||
{
|
||||
if ((*it)->iAmLocal)
|
||||
{
|
||||
publishStatusMqtt((*it)->getID(), (*it)->getValue());
|
||||
(*it)->onMqttWsAppConnectEvent();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
}
|
||||
|
||||
void clearConfigure() {
|
||||
|
||||
Reference in New Issue
Block a user