mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
MQTT settings in the UI
This commit is contained in:
parent
693689e5af
commit
6cdcb08abb
8 changed files with 140 additions and 27 deletions
|
@ -42,8 +42,10 @@
|
|||
|
||||
extern const char* version_number; // The current software version, used for mqtt
|
||||
|
||||
extern const char* mqtt_user;
|
||||
extern const char* mqtt_password;
|
||||
extern std::string mqtt_server;
|
||||
extern std::string mqtt_user;
|
||||
extern std::string mqtt_password;
|
||||
extern int mqtt_port;
|
||||
extern const char* mqtt_topic_name;
|
||||
extern const char* mqtt_object_id_prefix;
|
||||
extern const char* mqtt_device_name;
|
||||
|
@ -51,7 +53,7 @@ extern const char* ha_device_id;
|
|||
|
||||
extern char mqtt_msg[MQTT_MSG_BUFFER_SIZE];
|
||||
|
||||
void init_mqtt(void);
|
||||
bool init_mqtt(void);
|
||||
void mqtt_loop(void);
|
||||
bool mqtt_publish(const char* topic, const char* mqtt_msg, bool retain);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue