Initial commit
This commit is contained in:
13
include/mqtt_client.h
Normal file
13
include/mqtt_client.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "data_model.h"
|
||||
#include "wifi_manager.h"
|
||||
|
||||
void mqtt_init(const WifiMqttConfig &config, const char *device_id);
|
||||
void mqtt_loop();
|
||||
bool mqtt_is_connected();
|
||||
bool mqtt_publish_state(const MeterData &data);
|
||||
#ifdef ENABLE_TEST_MODE
|
||||
bool mqtt_publish_test(const char *device_id, const String &payload);
|
||||
#endif
|
||||
Reference in New Issue
Block a user