Skip to content

Commit

Permalink
Update ksMqttConnector.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 authored Jun 19, 2024
1 parent b4d07d9 commit fb979bd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ksf/comp/ksMqttConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ namespace ksf::comps
certFingerprint = std::make_unique<ksCertFingerprintHolder>();

if (certFingerprint->setup(secureClient.get(), fingerprint))
{
#if ESP32
constexpr auto handshakeTimeoutSec{KSF_MQTT_TIMEOUT_MS/KSF_ONE_SEC_MS};
secureClient->setHandshakeTimeout(handshakeTimeoutSec);
#endif

netClientUq = std::move(secureClient);

#if ESP32
constexpr auto handshakeTimeoutSec{KSF_MQTT_TIMEOUT_MS/KSF_ONE_SEC_MS};
secureClient->setHandshakeTimeout(handshakeTimeoutSec);
#endif
}
}
else
{
Expand Down

0 comments on commit fb979bd

Please sign in to comment.