mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-15 17:55:09 +00:00
enable MQTT with TLS on RPi picow (#5442)
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
parent
0048e3cdcb
commit
7c2b6778cb
@ -345,7 +345,7 @@ void MQTT::reconnect()
|
|||||||
mqttPassword = moduleConfig.mqtt.password;
|
mqttPassword = moduleConfig.mqtt.password;
|
||||||
}
|
}
|
||||||
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
||||||
#if !defined(CONFIG_IDF_TARGET_ESP32C6) && !defined(RPI_PICO)
|
#if !defined(CONFIG_IDF_TARGET_ESP32C6)
|
||||||
if (moduleConfig.mqtt.tls_enabled) {
|
if (moduleConfig.mqtt.tls_enabled) {
|
||||||
// change default for encrypted to 8883
|
// change default for encrypted to 8883
|
||||||
try {
|
try {
|
||||||
|
@ -35,7 +35,7 @@ class MQTT : private concurrency::OSThread
|
|||||||
#if HAS_WIFI
|
#if HAS_WIFI
|
||||||
WiFiClient mqttClient;
|
WiFiClient mqttClient;
|
||||||
#if !defined(ARCH_PORTDUINO)
|
#if !defined(ARCH_PORTDUINO)
|
||||||
#if defined(ESP_ARDUINO_VERSION_MAJOR) && ESP_ARDUINO_VERSION_MAJOR < 3
|
#if (defined(ESP_ARDUINO_VERSION_MAJOR) && ESP_ARDUINO_VERSION_MAJOR < 3) || defined(RPI_PICO)
|
||||||
WiFiClientSecure wifiSecureClient;
|
WiFiClientSecure wifiSecureClient;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user