Skip to content

Commit

Permalink
getConnectionEstablishedCount return short (#90)
Browse files Browse the repository at this point in the history
getConnectionEstablishedCount return bool, I assume this should be `unsigned int` rather than `bool`?

* Update src/EspMQTTClient.h
Co-authored-by: EdJoPaTo <[email protected]>
  • Loading branch information
drc38 authored Sep 19, 2021
1 parent d54a898 commit 78e2f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EspMQTTClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class EspMQTTClient
inline bool isConnected() const { return isWifiConnected() && isMqttConnected(); }; // Return true if everything is connected
inline bool isWifiConnected() const { return _wifiConnected; }; // Return true if wifi is connected
inline bool isMqttConnected() const { return _mqttConnected; }; // Return true if mqtt is connected
inline bool getConnectionEstablishedCount() const { return _connectionEstablishedCount; }; // Return the number of time onConnectionEstablished has been called since the beginning.
inline unsigned int getConnectionEstablishedCount() const { return _connectionEstablishedCount; }; // Return the number of time onConnectionEstablished has been called since the beginning.

inline const char* getMqttClientName() { return _mqttClientName; };
inline const char* getMqttServerIp() { return _mqttServerIp; };
Expand Down

0 comments on commit 78e2f37

Please sign in to comment.