replace PubSubClient with arduino mqtt lib

This commit is contained in:
technyon
2023-01-16 20:41:08 +01:00
parent fd852ac400
commit 6127fc331e
78 changed files with 3042 additions and 4096 deletions

View File

@@ -31,12 +31,12 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences)
_wifiClientSecure->setCertificate(_cert);
_wifiClientSecure->setPrivateKey(_key);
}
_mqttClient = new PubSubClient(*_wifiClientSecure);
_mqttClient = new MqttClient(*_wifiClientSecure);
} else
{
Log->println(F("MQTT without TLS."));
_wifiClient = new WiFiClient();
_mqttClient = new PubSubClient(*_wifiClient);
_mqttClient = new MqttClient(*_wifiClient);
}
if(_preferences->getBool(preference_mqtt_log_enabled))
@@ -51,7 +51,7 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences)
}
}
PubSubClient *WifiDevice::mqttClient()
MqttClient *WifiDevice::mqttClient()
{
return _mqttClient;
}