mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 20:16:55 +03:00
* Migrate parameters to v14.1 branch (#2023) * Migrated parameters * - * . * . * . * . * . * Remove unneeded checkboxes for true/false * Remove ";" * Correct MaintTopic * Added missing parameters to UI: FlipImageSize, InitialMirror Removed checkbox in UI for ErrorMessage Added migration of pboolean parameters: enable them if they where disabled, set them to their default value, then enable them Switch SetRetainFlag internally to a boolean * . * CamImages -> RawImages * CamImages -> RawImages * catch error on unknown parameter * fix missing case insensitivity * fix typo * fixmissing rename * fix migration of ExtendedResolution * Delete ClassFlowMakeImage.cpp * Delete ClassFlowMakeImage.h --------- Co-authored-by: CaCO3 <caco@ruinelli.ch> Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com> * Update Changelog.md --------- Co-authored-by: CaCO3 <caco@ruinelli.ch> Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com>
26 lines
746 B
C++
26 lines
746 B
C++
#ifdef ENABLE_MQTT
|
|
|
|
#pragma once
|
|
|
|
#ifndef SERVERMQTT_H
|
|
#define SERVERMQTT_H
|
|
|
|
#include "ClassFlowDefineTypes.h"
|
|
|
|
void SetHomeassistantDiscoveryEnabled(bool enabled);
|
|
void mqttServer_setParameter(std::vector<NumberPost*>* _NUMBERS, int interval, float roundInterval);
|
|
void mqttServer_setMeterType(std::string meterType, std::string valueUnit, std::string timeUnit,std::string rateUnit);
|
|
void setMqtt_Server_Retain(bool SetRetainFlag);
|
|
void mqttServer_setMainTopic( std::string maintopic);
|
|
std::string mqttServer_getMainTopic();
|
|
|
|
void register_server_mqtt_uri(httpd_handle_t server);
|
|
|
|
void publishSystemData();
|
|
|
|
std::string getTimeUnit(void);
|
|
void GotConnected(std::string maintopic, bool SetRetainFlag);
|
|
|
|
|
|
#endif //SERVERMQTT_H
|
|
#endif //ENABLE_MQTT
|