diff --git a/Network.cpp b/Network.cpp index 2b265e3..e342506 100644 --- a/Network.cpp +++ b/Network.cpp @@ -496,7 +496,7 @@ bool Network::reconnect() _device->printError(); _mqttConnectionState = 0; _nextReconnect = millis() + 5000; - _device->mqttDisonnect(true); + _device->mqttDisconnect(true); } } return _mqttConnectionState > 0; diff --git a/NukiWrapper.cpp b/NukiWrapper.cpp index 05abfc8..d42b855 100644 --- a/NukiWrapper.cpp +++ b/NukiWrapper.cpp @@ -725,7 +725,7 @@ bool NukiWrapper::hasDoorSensor() const { return _keyTurnerState.doorSensorState == Nuki::DoorSensorState::DoorClosed || _keyTurnerState.doorSensorState == Nuki::DoorSensorState::DoorOpened || - _keyTurnerState.doorSensorState == Nuki::DoorSensorState::Calibrating;; + _keyTurnerState.doorSensorState == Nuki::DoorSensorState::Calibrating; } void NukiWrapper::disableHASS() diff --git a/networkDevices/EthLan8720Device.cpp b/networkDevices/EthLan8720Device.cpp index 2c56464..def7bc6 100644 --- a/networkDevices/EthLan8720Device.cpp +++ b/networkDevices/EthLan8720Device.cpp @@ -243,7 +243,7 @@ bool EthLan8720Device::mqttConnect() } } -bool EthLan8720Device::mqttDisonnect(bool force) +bool EthLan8720Device::mqttDisconnect(bool force) { if(_useEncryption) { diff --git a/networkDevices/EthLan8720Device.h b/networkDevices/EthLan8720Device.h index 4f4af9d..1453e1b 100644 --- a/networkDevices/EthLan8720Device.h +++ b/networkDevices/EthLan8720Device.h @@ -51,7 +51,7 @@ public: bool mqttConnect() override; - bool mqttDisonnect(bool force) override; + bool mqttDisconnect(bool force) override; void setWill(const char *topic, uint8_t qos, bool retain, const char *payload) override; diff --git a/networkDevices/NetworkDevice.h b/networkDevices/NetworkDevice.h index 8c87246..a850696 100644 --- a/networkDevices/NetworkDevice.h +++ b/networkDevices/NetworkDevice.h @@ -39,7 +39,7 @@ public: virtual bool mqttConnected() const = 0; virtual void mqttSetServer(const char* host, uint16_t port) = 0; virtual bool mqttConnect() = 0; - virtual bool mqttDisonnect(bool force) = 0; + virtual bool mqttDisconnect(bool force) = 0; virtual void setWill(const char* topic, uint8_t qos, bool retain, const char* payload) = 0; virtual void mqttSetCredentials(const char* username, const char* password) = 0; virtual void mqttOnMessage(espMqttClientTypes::OnMessageCallback callback) = 0; diff --git a/networkDevices/W5500Device.cpp b/networkDevices/W5500Device.cpp index 615a938..e66b6bd 100644 --- a/networkDevices/W5500Device.cpp +++ b/networkDevices/W5500Device.cpp @@ -259,7 +259,7 @@ bool W5500Device::mqttConnect() return _mqttClient.connect(); } -bool W5500Device::mqttDisonnect(bool force) +bool W5500Device::mqttDisconnect(bool force) { return _mqttClient.disconnect(force); } diff --git a/networkDevices/W5500Device.h b/networkDevices/W5500Device.h index 3d4ed3c..ca909eb 100644 --- a/networkDevices/W5500Device.h +++ b/networkDevices/W5500Device.h @@ -47,7 +47,7 @@ public: bool mqttConnect() override; - bool mqttDisonnect(bool force) override; + bool mqttDisconnect(bool force) override; void setWill(const char *topic, uint8_t qos, bool retain, const char *payload) override; diff --git a/networkDevices/WifiDevice.cpp b/networkDevices/WifiDevice.cpp index bb66d42..1cf1709 100644 --- a/networkDevices/WifiDevice.cpp +++ b/networkDevices/WifiDevice.cpp @@ -261,7 +261,7 @@ bool WifiDevice::mqttConnect() } } -bool WifiDevice::mqttDisonnect(bool force) +bool WifiDevice::mqttDisconnect(bool force) { if(_useEncryption) { diff --git a/networkDevices/WifiDevice.h b/networkDevices/WifiDevice.h index f05af77..99a7dbc 100644 --- a/networkDevices/WifiDevice.h +++ b/networkDevices/WifiDevice.h @@ -41,7 +41,7 @@ public: bool mqttConnect() override; - bool mqttDisonnect(bool force) override; + bool mqttDisconnect(bool force) override; void setWill(const char *topic, uint8_t qos, bool retain, const char *payload) override;