mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-11 23:52:14 +00:00
tryfix
This commit is contained in:
parent
833d7f65bc
commit
b4bdf604f5
@ -45,7 +45,11 @@ template <class T, class U> void APIServerPort<T, U>::init()
|
|||||||
|
|
||||||
template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
|
template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
|
||||||
{
|
{
|
||||||
|
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
|
||||||
auto client = U::accept();
|
auto client = U::accept();
|
||||||
|
#else
|
||||||
|
auto client = U::available();
|
||||||
|
#endif
|
||||||
if (client) {
|
if (client) {
|
||||||
// Close any previous connection (see FIXME in header file)
|
// Close any previous connection (see FIXME in header file)
|
||||||
if (openAPI) {
|
if (openAPI) {
|
||||||
|
@ -329,7 +329,7 @@ void MQTT::reconnect()
|
|||||||
mqttPassword = moduleConfig.mqtt.password;
|
mqttPassword = moduleConfig.mqtt.password;
|
||||||
}
|
}
|
||||||
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C6
|
#if !defined(CONFIG_IDF_TARGET_ESP32C6) && !defined(RPI_PICO)
|
||||||
if (moduleConfig.mqtt.tls_enabled) {
|
if (moduleConfig.mqtt.tls_enabled) {
|
||||||
// change default for encrypted to 8883
|
// change default for encrypted to 8883
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user