mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 13:06:54 +03:00
Enhance homeassistant discovery (V5) (#1275)
* manual re-creation of #1246 * removed non-working approach to get interval * postpone the MQTT service start until the ClassFlowControll::ReadParameter() gets called * Increase the max_uri_handlers to 35 (was 30) * removed newlines in logs * added parameter to UI * Register handler to re-start MQTT Discovery * fix param
This commit is contained in:
@@ -14,7 +14,8 @@ protected:
|
||||
ClassFlowPostProcessing* flowpostprocessing;
|
||||
std::string user, password;
|
||||
int SetRetainFlag;
|
||||
int keepAlive;
|
||||
int keepAlive; // Seconds
|
||||
float roundInterval; // Minutes
|
||||
|
||||
std::string maintopic;
|
||||
void SetInitialParameter(void);
|
||||
@@ -25,6 +26,7 @@ public:
|
||||
ClassFlowMQTT(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
|
||||
|
||||
string GetMQTTMainTopic();
|
||||
bool Start(float AutoIntervall);
|
||||
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
bool doFlow(string time);
|
||||
|
||||
Reference in New Issue
Block a user