From 5b0d5495325cc934454a041586d3c099d32f0dd1 Mon Sep 17 00:00:00 2001 From: cziter15 Date: Wed, 19 Jun 2024 15:30:16 +0000 Subject: [PATCH] deploy: fb979bd60533366d0608b9f5584dff0b40850248 --- ks_mqtt_connector_8h_source.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ks_mqtt_connector_8h_source.html b/ks_mqtt_connector_8h_source.html index 97047c2..984b3d9 100644 --- a/ks_mqtt_connector_8h_source.html +++ b/ks_mqtt_connector_8h_source.html @@ -207,32 +207,32 @@
std::weak_ptr< ksWifiConnector > wifiConnWp
Weak pointer to WiFi connector.
Definition ksMqttConnector.h:55
std::unique_ptr< WiFiClient > netClientUq
Shared pointer to WiFiClient used to connect to MQTT.
Definition ksMqttConnector.h:52
std::string prefix
Saved MQTT prefix.
Definition ksMqttConnector.h:68
-
void subscribe(const std::string &topic, bool skipDevicePrefix=false, ksMqttConnector::QosLevel=ksMqttConnector::QosLevel::QOS_AT_LEAST_ONCE)
Subscribes to MQTT topic.
Definition ksMqttConnector.cpp:143
+
void subscribe(const std::string &topic, bool skipDevicePrefix=false, ksMqttConnector::QosLevel=ksMqttConnector::QosLevel::QOS_AT_LEAST_ONCE)
Subscribes to MQTT topic.
Definition ksMqttConnector.cpp:145
uint32_t getReconnectCounter() const
Retrieves MQTT reconnect counter.
Definition ksMqttConnector.h:157
bool init(ksApplication *app) override
Instantiates the MQTT connector component.
Definition ksMqttConnector.cpp:42
uint64_t lastSuccessConnectionTime
Time of connection to MQTT broker in seconds.
Definition ksMqttConnector.h:57
std::unique_ptr< PubSubClient > mqttClientUq
Shared pointer to PubSubClient used to connect to MQTT.
Definition ksMqttConnector.h:53
virtual ~ksMqttConnector()
Destructor (for uniqueptr purposes).
std::shared_ptr< ksf::evt::ksEvent< const std::string_view &, const std::string_view & > > onAnyMessage
onAnyMessage event that user can bind to.
Definition ksMqttConnector.h:104
-
bool loop(ksApplication *app) override
Executes MQTT connection logic.
Definition ksMqttConnector.cpp:223
+
bool loop(ksApplication *app) override
Executes MQTT connection logic.
Definition ksMqttConnector.cpp:225
std::unique_ptr< ksCertFingerprint > certFingerprint
Shared pointer to fingerprint validator.
Definition ksMqttConnector.h:72
std::string login
Saved MQTT login.
Definition ksMqttConnector.h:66
bool usePersistentSession
Use persistent session or not.
Definition ksMqttConnector.h:61
-
uint32_t getConnectionTimeSeconds() const
Retrieves connection time in seconds.
Definition ksMqttConnector.cpp:258
+
uint32_t getConnectionTimeSeconds() const
Retrieves connection time in seconds.
Definition ksMqttConnector.cpp:260
bool sendConnectionStatus
Send connection status to MQTT or not.
Definition ksMqttConnector.h:60
-
void unsubscribe(const std::string &topic, bool skipDevicePrefix=false)
Unsubscribes the MQTT topic.
Definition ksMqttConnector.cpp:149
-
bool isConnected() const
Retrieves connection state.
Definition ksMqttConnector.cpp:253
+
void unsubscribe(const std::string &topic, bool skipDevicePrefix=false)
Unsubscribes the MQTT topic.
Definition ksMqttConnector.cpp:151
+
bool isConnected() const
Retrieves connection state.
Definition ksMqttConnector.cpp:255
void setupConnection(const std::string broker, const std::string &port, std::string login, std::string password, std::string prefix, const std::string &fingerprint)
Sets up MQTT connection.
Definition ksMqttConnector.cpp:66
std::shared_ptr< ksf::evt::ksEvent<> > onDisconnected
onDisconnected event that user can bind to.
Definition ksMqttConnector.h:107
-
void publish(const std::string &topic, const std::string &payload, bool retain=false, bool skipDevicePrefix=false)
Publishes a message to the MQTT topic.
Definition ksMqttConnector.cpp:154
+
void publish(const std::string &topic, const std::string &payload, bool retain=false, bool skipDevicePrefix=false)
Publishes a message to the MQTT topic.
Definition ksMqttConnector.cpp:156
uint16_t portNumber
Saved MQTT port number.
Definition ksMqttConnector.h:70
-
void mqttConnectedInternal()
Connects to the MQTT broker (internal function).
Definition ksMqttConnector.cpp:106
-
bool connectToBroker()
Connects to the MQTT broker.
Definition ksMqttConnector.cpp:171
+
void mqttConnectedInternal()
Connects to the MQTT broker (internal function).
Definition ksMqttConnector.cpp:108
+
bool connectToBroker()
Connects to the MQTT broker.
Definition ksMqttConnector.cpp:173
ksSimpleTimer reconnectTimer
Timer that counts time between reconnection attempts.
Definition ksMqttConnector.h:64
bool postInit(ksApplication *app) override
Method that handles component post-initialization.
Definition ksMqttConnector.cpp:60
std::string broker
Saved MQTT broker.
Definition ksMqttConnector.h:69
std::shared_ptr< ksf::evt::ksEvent<> > onConnected
onConnected event that user can bind to.
Definition ksMqttConnector.h:106
-
void mqttMessageInternal(const char *topic, const uint8_t *payload, uint32_t length)
Called when MQTT message arrives (internal function).
Definition ksMqttConnector.cpp:113
+
void mqttMessageInternal(const char *topic, const uint8_t *payload, uint32_t length)
Called when MQTT message arrives (internal function).
Definition ksMqttConnector.cpp:115
std::string password
Saved MQTT password.
Definition ksMqttConnector.h:67
uint32_t reconnectCounter
MQTT reconnection counter.
Definition ksMqttConnector.h:58
bool wasConnected
True if connected in previous loop.
Definition ksMqttConnector.h:62