diff --git a/classksf_1_1comps_1_1ks_mqtt_connector-members.html b/classksf_1_1comps_1_1ks_mqtt_connector-members.html index 84a276e..dfc064d 100644 --- a/classksf_1_1comps_1_1ks_mqtt_connector-members.html +++ b/classksf_1_1comps_1_1ks_mqtt_connector-members.html @@ -111,7 +111,7 @@ lastSuccessConnectionTimeksf::comps::ksMqttConnectorprotected loginksf::comps::ksMqttConnectorprotected loop(ksApplication *app) overrideksf::comps::ksMqttConnectorvirtual - mqttClientSpksf::comps::ksMqttConnectorprotected + mqttClientUqksf::comps::ksMqttConnectorprotected mqttConnectedInternal()ksf::comps::ksMqttConnectorprotected mqttMessageInternal(const char *topic, const uint8_t *payload, uint32_t length)ksf::comps::ksMqttConnectorprotected onAnyMessageksf::comps::ksMqttConnector @@ -132,7 +132,7 @@ unsubscribe(const std::string &topic, bool skipDevicePrefix=false)ksf::comps::ksMqttConnector usePersistentSessionksf::comps::ksMqttConnectorprotected wasConnectedksf::comps::ksMqttConnectorprotected - wifiClientSpksf::comps::ksMqttConnectorprotected + wifiClientUqksf::comps::ksMqttConnectorprotected wifiConnWpksf::comps::ksMqttConnectorprotected ~ksMqttConnector()ksf::comps::ksMqttConnectorvirtual diff --git a/classksf_1_1comps_1_1ks_mqtt_connector.html b/classksf_1_1comps_1_1ks_mqtt_connector.html index ebb52e7..f725507 100644 --- a/classksf_1_1comps_1_1ks_mqtt_connector.html +++ b/classksf_1_1comps_1_1ks_mqtt_connector.html @@ -222,14 +222,14 @@ - - - - - - + + + + + + @@ -348,7 +348,7 @@

Returns
True on success, false on fail.
-

References broker, certFingerprint, login, mqttClientSp, password, portNumber, prefix, sendConnectionStatus, usePersistentSession, and wifiClientSp.

+

References broker, certFingerprint, login, mqttClientUq, password, portNumber, prefix, sendConnectionStatus, usePersistentSession, and wifiClientUq.

Referenced by loop().

@@ -470,7 +470,7 @@

ksf::ksComponent.

-

References ksf::ksComponent::init(), mqttClientSp, and ksf::comps::ksMqttConfigProvider::setupMqttConnector().

+

References ksf::ksComponent::init(), mqttClientUq, and ksf::comps::ksMqttConfigProvider::setupMqttConnector().

@@ -528,7 +528,7 @@

Returns
True if connected, otherwise false.
-

References mqttClientSp.

+

References mqttClientUq.

Referenced by getConnectionTimeSeconds().

@@ -562,7 +562,7 @@

ksf::ksComponent.

-

References ksf::evt::ksEvent< Params >::broadcast(), connectToBroker(), ksf::ksSimpleTimer::hasTimePassed(), mqttClientSp, mqttConnectedInternal(), onDisconnected, reconnectCounter, reconnectTimer, ksf::ksSimpleTimer::restart(), wasConnected, and wifiConnWp.

+

References ksf::evt::ksEvent< Params >::broadcast(), connectToBroker(), ksf::ksSimpleTimer::hasTimePassed(), mqttClientUq, mqttConnectedInternal(), onDisconnected, reconnectCounter, reconnectTimer, ksf::ksSimpleTimer::restart(), wasConnected, and wifiConnWp.

@@ -592,7 +592,7 @@

References ksf::evt::ksEvent< Params >::broadcast(), lastSuccessConnectionTime, mqttClientSp, mqttMessageInternal(), and onConnected.

+

References ksf::evt::ksEvent< Params >::broadcast(), lastSuccessConnectionTime, mqttClientUq, mqttMessageInternal(), and onConnected.

Referenced by loop().

@@ -725,7 +725,7 @@

References mqttClientSp, and prefix.

+

References mqttClientUq, and prefix.

@@ -780,7 +780,7 @@

References broker, certFingerprint, login, mqttClientSp, password, portNumber, prefix, and wifiClientSp.

+

References broker, certFingerprint, login, mqttClientUq, password, portNumber, prefix, and wifiClientUq.

Referenced by ksf::comps::ksMqttConfigProvider::setupMqttConnector().

@@ -820,7 +820,7 @@

References mqttClientSp, and prefix.

+

References mqttClientUq, and prefix.

@@ -852,7 +852,7 @@

References mqttClientSp, and prefix.

+

References mqttClientUq, and prefix.

diff --git a/doxygen_crawl.html b/doxygen_crawl.html index 926962d..dbe984f 100644 --- a/doxygen_crawl.html +++ b/doxygen_crawl.html @@ -234,9 +234,10 @@ - + + @@ -262,7 +263,6 @@ - diff --git a/functions_m.html b/functions_m.html index 119e678..355ec50 100644 --- a/functions_m.html +++ b/functions_m.html @@ -88,7 +88,7 @@

- m -

  • mode : ksf::comps::ksResetButton
  • -
  • mqttClientSp : ksf::comps::ksMqttConnector
  • +
  • mqttClientUq : ksf::comps::ksMqttConnector
  • mqttConnectedInternal() : ksf::comps::ksMqttConnector
  • mqttConnectorWp : ksf::comps::ksDevicePortal
  • mqttConnWp : ksf::comps::ksDevStatMqttReporter
  • diff --git a/functions_vars.html b/functions_vars.html index 7fe40eb..281dbbb 100644 --- a/functions_vars.html +++ b/functions_vars.html @@ -152,7 +152,7 @@

    - l -

      - m -

      @@ -212,7 +212,7 @@

      - w -

      • wasConnected : ksf::comps::ksMqttConnector, ksf::comps::ksWifiConnector
      • webServer : ksf::comps::ksDevicePortal
      • webSocket : ksf::comps::ksDevicePortal
      • -
      • wifiClientSp : ksf::comps::ksMqttConnector
      • +
      • wifiClientUq : ksf::comps::ksMqttConnector
      • wifiConnWp : ksf::comps::ksMqttConnector
      • wifiIpCheckTimer : ksf::comps::ksWifiConnector
      • wifiReconnectTimer : ksf::comps::ksWifiConnector
      • diff --git a/functions_w.html b/functions_w.html index 7391ab6..864e5ce 100644 --- a/functions_w.html +++ b/functions_w.html @@ -90,7 +90,7 @@

        - w -

        • wasConnected : ksf::comps::ksMqttConnector, ksf::comps::ksWifiConnector
        • webServer : ksf::comps::ksDevicePortal
        • webSocket : ksf::comps::ksDevicePortal
        • -
        • wifiClientSp : ksf::comps::ksMqttConnector
        • +
        • wifiClientUq : ksf::comps::ksMqttConnector
        • wifiConnectedInternal() : ksf::comps::ksWifiConnector
        • wifiConnWp : ksf::comps::ksMqttConnector
        • wifiDisconnectedInternal() : ksf::comps::ksWifiConnector
        • diff --git a/ks_mqtt_connector_8h_source.html b/ks_mqtt_connector_8h_source.html index a75c4dd..9a90ce3 100644 --- a/ks_mqtt_connector_8h_source.html +++ b/ks_mqtt_connector_8h_source.html @@ -127,8 +127,8 @@
          41#if APP_LOG_ENABLED
          42 ksApplication* app{nullptr};
          43#endif
          -
          44 std::unique_ptr<WiFiClient> wifiClientSp;
          -
          45 std::unique_ptr<PubSubClient> mqttClientSp;
          +
          44 std::unique_ptr<WiFiClient> wifiClientUq;
          +
          45 std::unique_ptr<PubSubClient> mqttClientUq;
          46
          47 std::weak_ptr<ksWifiConnector> wifiConnWp;
          48
          @@ -200,9 +200,10 @@
          std::string prefix
          Saved MQTT prefix.
          Definition ksMqttConnector.h:60
          void subscribe(const std::string &topic, bool skipDevicePrefix=false, ksMqttConnector::QosLevel=ksMqttConnector::QosLevel::QOS_AT_LEAST_ONCE)
          Subscribes to MQTT topic.
          Definition ksMqttConnector.cpp:155
          uint32_t getReconnectCounter() const
          Retrieves MQTT reconnect counter.
          Definition ksMqttConnector.h:149
          -
          std::unique_ptr< WiFiClient > wifiClientSp
          Shared pointer to WiFiClient used to connect to MQTT.
          Definition ksMqttConnector.h:44
          bool init(ksApplication *app) override
          Instantiates the MQTT connector component.
          Definition ksMqttConnector.cpp:40
          +
          std::unique_ptr< WiFiClient > wifiClientUq
          Shared pointer to WiFiClient used to connect to MQTT.
          Definition ksMqttConnector.h:44
          uint64_t lastSuccessConnectionTime
          Time of connection to MQTT broker in seconds.
          Definition ksMqttConnector.h:49
          +
          std::unique_ptr< PubSubClient > mqttClientUq
          Shared pointer to PubSubClient used to connect to MQTT.
          Definition ksMqttConnector.h:45
          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:96
          bool loop(ksApplication *app) override
          Executes MQTT connection logic.
          Definition ksMqttConnector.cpp:236
          @@ -225,7 +226,6 @@
          std::shared_ptr< ksf::evt::ksEvent<> > onConnected
          onConnected event that user can bind to.
          Definition ksMqttConnector.h:98
          void mqttMessageInternal(const char *topic, const uint8_t *payload, uint32_t length)
          Called when MQTT message arrives (internal function).
          Definition ksMqttConnector.cpp:125
          std::string password
          Saved MQTT password.
          Definition ksMqttConnector.h:59
          -
          std::unique_ptr< PubSubClient > mqttClientSp
          Shared pointer to PubSubClient used to connect to MQTT.
          Definition ksMqttConnector.h:45
          uint32_t reconnectCounter
          MQTT reconnection counter.
          Definition ksMqttConnector.h:50
          bool wasConnected
          True if connected in previous loop.
          Definition ksMqttConnector.h:54
          std::shared_ptr< ksf::evt::ksEvent< const std::string_view &, const std::string_view & > > onDeviceMessage
          onDeviceMessage event that user can bind to.
          Definition ksMqttConnector.h:95
          diff --git a/search/all_13.js b/search/all_13.js index 6be7874..2e17ae0 100644 --- a/search/all_13.js +++ b/search/all_13.js @@ -3,7 +3,7 @@ var searchData= ['wasconnected_0',['wasConnected',['../classksf_1_1comps_1_1ks_mqtt_connector.html#afc9123d68f055d4709f9f455cfb655f9',1,'ksf::comps::ksMqttConnector::wasConnected'],['../classksf_1_1comps_1_1ks_wifi_connector.html#a32228ab43c1d389d792f960e7e5b1aec',1,'ksf::comps::ksWifiConnector::wasConnected']]], ['webserver_1',['webServer',['../classksf_1_1comps_1_1ks_device_portal.html#aed3161ec11cf98fc8afa61e0868596ad',1,'ksf::comps::ksDevicePortal']]], ['websocket_2',['webSocket',['../classksf_1_1comps_1_1ks_device_portal.html#a70a982a1a01f3ae4011d6b78f2dcedbc',1,'ksf::comps::ksDevicePortal']]], - ['wificlientsp_3',['wifiClientSp',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a437a9bcc82d47c0bc27f25c155d35ff3',1,'ksf::comps::ksMqttConnector']]], + ['wificlientuq_3',['wifiClientUq',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a575a8a5a511616505c34cbf0866651b8',1,'ksf::comps::ksMqttConnector']]], ['wificonnectedinternal_4',['wifiConnectedInternal',['../classksf_1_1comps_1_1ks_wifi_connector.html#ae2a0ac579cfc0b29ad0ade3de0b8cde4',1,'ksf::comps::ksWifiConnector']]], ['wificonnwp_5',['wifiConnWp',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a00194e36edb73cbc7db830d42490fff4',1,'ksf::comps::ksMqttConnector']]], ['wifidisconnectedinternal_6',['wifiDisconnectedInternal',['../classksf_1_1comps_1_1ks_wifi_connector.html#ad011586bdc807db81e5eb9b2766ed950',1,'ksf::comps::ksWifiConnector']]], diff --git a/search/all_b.js b/search/all_b.js index 6b43a4b..593b3df 100644 --- a/search/all_b.js +++ b/search/all_b.js @@ -2,7 +2,7 @@ var searchData= [ ['mode_0',['mode',['../classksf_1_1comps_1_1ks_reset_button.html#a801b0826bec2cbcef312909b6b9806f3',1,'ksf::comps::ksResetButton']]], ['motivation_1',['🌱 Motivation',['../index.html#autotoc_md1',1,'']]], - ['mqttclientsp_2',['mqttClientSp',['../classksf_1_1comps_1_1ks_mqtt_connector.html#af745644b5a8c20a49ce70e22e5602303',1,'ksf::comps::ksMqttConnector']]], + ['mqttclientuq_2',['mqttClientUq',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a61ba0c64348bc892107da76723b78525',1,'ksf::comps::ksMqttConnector']]], ['mqttconnectedinternal_3',['mqttConnectedInternal',['../classksf_1_1comps_1_1ks_mqtt_connector.html#ac9219e05b7ebd1c2614a36bb8155efe7',1,'ksf::comps::ksMqttConnector']]], ['mqttconnectorwp_4',['mqttConnectorWp',['../classksf_1_1comps_1_1ks_device_portal.html#a4484797e62d2e4ad675db2d836f95d04',1,'ksf::comps::ksDevicePortal']]], ['mqttconnwp_5',['mqttConnWp',['../classksf_1_1comps_1_1ks_dev_stat_mqtt_reporter.html#aaf36a1e5900bef0469f527f962174723',1,'ksf::comps::ksDevStatMqttReporter']]], diff --git a/search/variables_8.js b/search/variables_8.js index 0780c82..d4cc869 100644 --- a/search/variables_8.js +++ b/search/variables_8.js @@ -1,7 +1,7 @@ var searchData= [ ['mode_0',['mode',['../classksf_1_1comps_1_1ks_reset_button.html#a801b0826bec2cbcef312909b6b9806f3',1,'ksf::comps::ksResetButton']]], - ['mqttclientsp_1',['mqttClientSp',['../classksf_1_1comps_1_1ks_mqtt_connector.html#af745644b5a8c20a49ce70e22e5602303',1,'ksf::comps::ksMqttConnector']]], + ['mqttclientuq_1',['mqttClientUq',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a61ba0c64348bc892107da76723b78525',1,'ksf::comps::ksMqttConnector']]], ['mqttconnectorwp_2',['mqttConnectorWp',['../classksf_1_1comps_1_1ks_device_portal.html#a4484797e62d2e4ad675db2d836f95d04',1,'ksf::comps::ksDevicePortal']]], ['mqttconnwp_3',['mqttConnWp',['../classksf_1_1comps_1_1ks_dev_stat_mqtt_reporter.html#aaf36a1e5900bef0469f527f962174723',1,'ksf::comps::ksDevStatMqttReporter']]] ]; diff --git a/search/variables_f.js b/search/variables_f.js index f1aa446..6fd5e86 100644 --- a/search/variables_f.js +++ b/search/variables_f.js @@ -3,7 +3,7 @@ var searchData= ['wasconnected_0',['wasConnected',['../classksf_1_1comps_1_1ks_mqtt_connector.html#afc9123d68f055d4709f9f455cfb655f9',1,'ksf::comps::ksMqttConnector::wasConnected'],['../classksf_1_1comps_1_1ks_wifi_connector.html#a32228ab43c1d389d792f960e7e5b1aec',1,'ksf::comps::ksWifiConnector::wasConnected']]], ['webserver_1',['webServer',['../classksf_1_1comps_1_1ks_device_portal.html#aed3161ec11cf98fc8afa61e0868596ad',1,'ksf::comps::ksDevicePortal']]], ['websocket_2',['webSocket',['../classksf_1_1comps_1_1ks_device_portal.html#a70a982a1a01f3ae4011d6b78f2dcedbc',1,'ksf::comps::ksDevicePortal']]], - ['wificlientsp_3',['wifiClientSp',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a437a9bcc82d47c0bc27f25c155d35ff3',1,'ksf::comps::ksMqttConnector']]], + ['wificlientuq_3',['wifiClientUq',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a575a8a5a511616505c34cbf0866651b8',1,'ksf::comps::ksMqttConnector']]], ['wificonnwp_4',['wifiConnWp',['../classksf_1_1comps_1_1ks_mqtt_connector.html#a00194e36edb73cbc7db830d42490fff4',1,'ksf::comps::ksMqttConnector']]], ['wifiipchecktimer_5',['wifiIpCheckTimer',['../classksf_1_1comps_1_1ks_wifi_connector.html#a20835a8e41863f79bd140f905d908bae',1,'ksf::comps::ksWifiConnector']]], ['wifireconnecttimer_6',['wifiReconnectTimer',['../classksf_1_1comps_1_1ks_wifi_connector.html#a0564f0ed42827fbfc35bdf168b0490cb',1,'ksf::comps::ksWifiConnector']]],

Protected Attributes

-std::unique_ptr< WiFiClient > wifiClientSp
 Shared pointer to WiFiClient used to connect to MQTT.
 
-std::unique_ptr< PubSubClient > mqttClientSp
 Shared pointer to PubSubClient used to connect to MQTT.
 
+std::unique_ptr< WiFiClient > wifiClientUq
 Shared pointer to WiFiClient used to connect to MQTT.
 
+std::unique_ptr< PubSubClient > mqttClientUq
 Shared pointer to PubSubClient used to connect to MQTT.
 
std::weak_ptr< ksWifiConnectorwifiConnWp
 Weak pointer to WiFi connector.