Skip to content

ESP32C3 keeps disconnecting #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mathiskir opened this issue May 3, 2025 · 4 comments
Open

ESP32C3 keeps disconnecting #428

mathiskir opened this issue May 3, 2025 · 4 comments

Comments

@mathiskir
Copy link

In the log (on sinric.pro) it shows that my esp32 c3 keeps disconnecting and then reconnecting. However the downtimes overweigh the uptimes, is this a known issue? Im using the following code on my esp:

#ifdef ENABLE_DEBUG
   #define DEBUG_ESP_PORT Serial
   #define NODEBUG_WEBSOCKETS
   #define NDEBUG
#endif 

#include <WiFi.h>
#include "SinricPro.h"
#include "SinricProSwitch.h"
#include <RCSwitch.h>

#define WIFI_SSID         ""
#define WIFI_PASS         ""
#define APP_KEY           ""
#define APP_SECRET        ""

#define MHZSIGNAL_ON      21
#define MHZSIGNAL_OFF     20

#define SWITCH_ID_1       ""

#define BAUD_RATE         115200

RCSwitch mhzSwitch = RCSwitch();

bool onPowerState1(const String &deviceId, bool &state) {
 Serial.printf("\n[Device]: Device 1 turned %s", state?"on":"off");
 if(state){
  Serial.println("\n[433 Mhz]: Sende Code " + String(MHZSIGNAL_ON));
  mhzSwitch.send(MHZSIGNAL_ON, 24);
 } else if(!state){
  Serial.println("\n[433 Mhz]: Sende Code " + String(MHZSIGNAL_ON));
  mhzSwitch.send(MHZSIGNAL_OFF, 24);
 }
 return true;
}

void setupWiFi() {
  Serial.printf("\r\n[Wifi]: Connecting");

  #if defined(ESP8266)
    WiFi.setSleepMode(WIFI_NONE_SLEEP); 
    WiFi.setAutoReconnect(true);
  #elif defined(ESP32)
    WiFi.setSleep(false); 
    WiFi.setAutoReconnect(true);
  #endif

  WiFi.begin(WIFI_SSID, WIFI_PASS);

  while (WiFi.status() != WL_CONNECTED) {
    Serial.printf(".");
    delay(250);
  }

  Serial.printf("\n[WiFi]: Connected.\r\n[WiFi]: IP-Address is %s", WiFi.localIP().toString().c_str());
}

void setupSinricPro() {
  SinricProSwitch& virtualSwitch = SinricPro[SWITCH_ID_1];
  virtualSwitch.onPowerState(onPowerState1);
  
  
  SinricPro.onConnected([](){ Serial.printf("\n[Sinric]: Connected to SinricPro"); }); 
  SinricPro.onDisconnected([](){ Serial.printf("\n[Sinric]: Disconnected from SinricPro"); });
  SinricPro.restoreDeviceStates(true);
   
  SinricPro.begin(APP_KEY, APP_SECRET);
}

void setup() {
  Serial.begin(BAUD_RATE); Serial.printf("\r\n");
  setupWiFi();
  setupSinricPro();
  mhzSwitch.enableTransmit(5);
  mhzSwitch.setProtocol(1);
  mhzSwitch.setPulseLength(318);
  mhzSwitch.setRepeatTransmit(10);
}

void loop() {
  SinricPro.handle();
}

let me know if i should enable any debug mode or smth to further assist you with solving this issue.

@kakopappa
Copy link
Contributor

kakopappa commented May 3, 2025

Can you enable the sinric pro logs and esp32 logs and post it here?
https://help.sinric.pro/pages/troubleshooting

@mathiskir
Copy link
Author

I managed to recreate the issue, the error with "dns failed" repeats endlessly

[Wifi]: Connecting.....
[WiFi]: Connected.
[WiFi]: IP-Address is 192.168.178.122[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Dein=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C3
  Package           : 0
  Revision          : 0.04
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000012
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : No
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   293628 B ( 286.7 KB)
  Free Bytes        :   256896 B ( 250.9 KB)
  Allocated Bytes   :    32716 B (  31.9 KB)
  Minimum Free Bytes:   251832 B ( 245.9 KB)
  Largest Free Block:   118772 B ( 116.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 80 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1408.0 KB, type: DATA, subtype: SPIFFS
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : May  4 2025 13:00:41
  Compile Host OS   : macosx
  ESP-IDF Version   : v5.4.1-1-g2f7dcd862a-dirty
  Arduino Version   : 3.2.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C3_DEV
  Arduino Variant   : esp32c3
  Arduino FQBN      : esp32:esp32:esp32c3:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=verbose,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default
============ Before Setup End ============
[  1417][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 18 already has type USB_DM (38) with bus 0x3fc936ec
[  1417][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 19 already has type USB_DP (39) with bus 0x3fc936ec


[Wifi]: Connecting[  1426][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 101 - WIFI_READY
[  1475][V][STA.cpp:186] _onStaEvent(): STA Started
[  1476][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 110 - STA_START
[  1476][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 110 - STA_START
.[  1604][V][STA.cpp:206] _onStaEvent(): STA Connected: SSID: Censored-Wifi, BSSID: xx:xx:xx:xx:xx:xx, Channel: 11, Auth: WPA2_PSK
[  1605][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 112 - STA_CONNECTED
[  1606][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 112 - STA_CONNECTED
....[  2668][V][NetworkInterface.cpp:78] _onIpEvent(): sta Got New IP: 192.168.178.122 MASK: 255.255.255.0 GW: 192.168.178.1
[  2669][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 115 - STA_GOT_IP
[  2669][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 115 - STA_GOT_IP
[  2670][V][STA.cpp:171] _onStaArduinoEvent(): STA IP: 192.168.178.122, MASK: 255.255.255.0, GW: 192.168.178.1

[WiFi]: Connected.
[WiFi]: IP-Address is 192.168.178.122[SinricPro]: Device "xxxxxx088ed485694c056b75" does not exist in the internal device list. creating new device
[SinricPro:add()]: Adding device with id "xxxxxx088ed485694c056b75".
[  2730][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42016ff8
[  2731][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 5 successfully set to type GPIO (1) with bus 0x6
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   293628 B ( 286.7 KB)
  Free Bytes        :   199252 B ( 194.6 KB)
  Allocated Bytes   :    87304 B (  85.3 KB)
  Minimum Free Bytes:   198412 B ( 193.8 KB)
  Largest Free Block:   114676 B ( 112.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     5 : GPIO
    18 : USB_DM
    19 : USB_DP
    20 : UART_RX[0]
    21 : UART_TX[0]
============ After Setup End =============
[SinricPro:Websocket]: Connecting to WebSocket Server using SSL (ws.sinric.pro)
[SinricPro:Websocket]: headers:
appkey:xxxxxx39-52a5-424d-be0a-795d9ad24500
deviceids:xxxxxx088ed485694c056b75
restoredevicestates:true
ip:192.168.178.122
mac:28:37:2F:69:9A:BC
platform:ESP32
SDKVersion:3.5.0
[  2762][D][NetworkManager.cpp:83] hostByName(): Clearing DNS cache
[  2823][D][NetworkManager.cpp:127] hostByName(): DNS found IPv4 162.55.80.75
[  2824][V][ssl_client.cpp:68] start_ssl_client(): Free internal heap before TLS 196516
[  2824][V][ssl_client.cpp:75] start_ssl_client(): Starting socket (domain 2)
[  2859][V][ssl_client.cpp:170] start_ssl_client(): Seeding the random number generator
[  2861][V][ssl_client.cpp:178] start_ssl_client(): Setting up the SSL/TLS structure...
[  2863][D][ssl_client.cpp:196] start_ssl_client(): WARNING: Skipping SSL Verification. INSECURE!
[  2863][V][ssl_client.cpp:292] start_ssl_client(): Setting hostname for TLS session...
[  2864][V][ssl_client.cpp:313] ssl_starttls_handshake(): Performing the SSL/TLS handshake...
[  3231][V][ssl_client.cpp:334] ssl_starttls_handshake(): Verifying peer X.509 certificate...
[  3232][V][ssl_client.cpp:342] ssl_starttls_handshake(): Certificate verified.
[  3232][V][ssl_client.cpp:358] ssl_starttls_handshake(): Free internal heap after TLS 154404
[SinricPro:Websocket]: connected

[Sinric]: Connected to SinricPro[SinricPro:Websocket]: headers:
appkey:xxxxxx39-52a5-424d-be0a-795d9ad24500
deviceids:xxxxxx088ed485694c056b75
restoredevicestates:false
ip:192.168.178.122
mac:28:37:2F:69:9A:BC
platform:ESP32
SDKVersion:3.5.0
[SinricPro:Websocket]: receiving data
[SinricPro.handleReceiveQueue()]: 1 message(s) in receiveQueue
[SinricPro.handleReceiveQueue()]: Signature is valid. Processing message...
[SinricPro:extractTimestamp(): Got Timestamp 1746356497
[SinricPro:Websocket]: receiving data
[SinricPro.handleReceiveQueue()]: 1 message(s) in receiveQueue
[SinricPro.handleReceiveQueue()]: Signature is valid. Processing message...
[SinricPro:extractTimestamp(): Got Timestamp 1746356498
[SinricPro.handleDeviceRequest()]: handling device sope request
{
  "header": {
    "payloadVersion": 2,
    "signatureVersion": 1
  },
  "payload": {
    "action": "setPowerState",
    "clientId": "portal",
    "createdAt": 1746356498,
    "deviceId": "xxxxxx088ed485694c056b75",
    "replyToken": "xxxxxx08-da1b-459d-b3ca-0a5896f856c1",
    "type": "request",
    "value": {
      "state": "Off"
    }
  },
  "signature": {
    "HMAC": "xxxxxxn8nnKlQ9hA9UD/8IxCfoiPGDWSpYci3mwBOiY="
  }
  }
[Device]: Device 1 turned off
[433 Mhz]: Sende Code 21
[SinricPro:handleSendQueue()]: 1 message(s) in sendQueue
[SinricPro:handleSendQueue()]: Sending message...
{
  "header": {
    "payloadVersion": 2,
    "signatureVersion": 1
  },
  "payload": {
    "action": "setPowerState",
    "clientId": "portal",
    "scope": null,
    "createdAt": 1746356498,
    "deviceId": "xxxxxx088ed485694c056b75",
    "message": "OK",
    "replyToken": "xxxxxx08-da1b-459d-b3ca-0a5896f856c1",
    "success": true,
    "type": "response",
    "value": {
      "state": "Off"
    }
  },
  "signature": {
    "HMAC": "xxxxxxiLSHFfZVIlrw7l06a0tJLbTMf5fBHDirsqpjQ="
  }
}
[SinricPro:handleSendQueue]: Sending to websocket
[SinricPro:handleSendQueue()]: message sent.
[SinricPro:Websocket]: receiving data
[SinricPro.handleReceiveQueue()]: 1 message(s) in receiveQueue
[SinricPro.handleReceiveQueue()]: Signature is valid. Processing message...
[SinricPro:extractTimestamp(): Got Timestamp 1746356685
[SinricPro.handleDeviceRequest()]: handling device sope request
{
  "header": {
    "payloadVersion": 2,
    "signatureVersion": 1
  },
  "payload": {
    "action": "setPowerState",
    "clientId": "portal",
    "createdAt": 1746356685,
    "deviceId": "xxxxxx088ed485694c056b75",
    "replyToken": "xxxxxxa5-44d6-43f8-b9a0-78af8a61b9df",
    "scope": "device",
    "type": "request",
    "value": {
      "state": "Off"
    }
  },
  "signature": {
    "HMAC": "xxxxxxsB4u7Jaf+b0NtQTjGBRgXa77GmGMZzRBow8IE="
  }
}
[Device]: Device 1 turned off
[433 Mhz]: Sende Code 21
[SinricPro:handleSendQueue()]: 1 message(s) in sendQueue
[SinricPro:handleSendQueue()]: Sending message...
{
  "header": {
    "payloadVersion": 2,
    "signatureVersion": 1
  },
  "payload": {
    "action": "setPowerState",
    "clientId": "portal",
    "scope": "device",
    "createdAt": 1746356685,
    "deviceId": "xxxxxx088ed485694c056b75",
    "message": "OK",
    "replyToken": "xxxxxxa5-44d6-43f8-b9a0-78af8a61b9df",
    "success": true,
    "type": "response",
    "value": {
      "state": "Off"
    }
  },
  "signature": {
    "HMAC": "xxxxxxrtZK8zu/0qb4URO/tPKOhcTCsyd005rySW/sI="
  }
}
[SinricPro:handleSendQueue]: Sending to websocket
[SinricPro:handleSendQueue()]: message sent.
[SinricPro:Websocket]: receiving data
[SinricPro.handleReceiveQueue()]: 1 message(s) in receiveQueue
[SinricPro.handleReceiveQueue()]: Signature is valid. Processing message...
[SinricPro:extractTimestamp(): Got Timestamp 1746356725
[SinricPro.handleDeviceRequest()]: handling device sope request
{
  "header": {
    "payloadVersion": 2,
    "signatureVersion": 1
  },
  "payload": {
    "action": "setPowerState",
    "clientId": "portal",
    "createdAt": 1746356725,
    "deviceId": "xxxxxx088ed485694c056b75",
    "replyToken": "xxxxxx7a-aeb8-40d8-b3e8-d67cb51dbf02",
    "scope": "device",
    "type": "request",
    "value": {
      "state": "On"
    }
  },
  "signature": {
    "HMAC": "xxxxxxCYOjRHYCv1dI00O8Sci8q48jAsiNEZ57cJNY0="
  }
}
[Device]: Device 1 turned on
[433 Mhz]: Sende Code 21
[SinricPro:handleSendQueue()]: 1 message(s) in sendQueue
[SinricPro:handleSendQueue()]: Sending message...
{
  "header": {
    "payloadVersion": 2,
    "signatureVersion": 1
  },
  "payload": {
    "action": "setPowerState",
    "clientId": "portal",
    "scope": "device",
    "createdAt": 1746356725,
    "deviceId": "xxxxxx088ed485694c056b75",
    "message": "OK",
    "replyToken": "xxxxxx57a-aeb8-40d8-b3e8-d67cb51dbf02",
    "success": true,
    "type": "response",
    "value": {
      "state": "On"
    }
  },
  "signature": {
    "HMAC": "xxxxxx1YTeBeWx1fWTAM7EUYzv93WPnfZ5r/mXuGP3g="
  }
}
[SinricPro:handleSendQueue]: Sending to websocket
[SinricPro:handleSendQueue()]: message sent.
[1726752][V][STA.cpp:216] _onStaEvent(): STA Disconnected: SSID: Censored-Wifi, BSSID: xx:xx:xx:xx:xx:xx, Reason: 34
[1726752][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 113 - STA_DISCONNECTED
[1726753][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 113 - STA_DISCONNECTED
[1726753][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 34 - MISSING_ACKS
[1726754][D][STA.cpp:155] _onStaArduinoEvent(): WiFi Reconnect Running
[1726754][W][STA.cpp:543] disconnect(): STA already disconnected.
[1726757][E][ssl_client.cpp:36] _handle_error(): [data_to_read():405]: (-76) UNKNOWN ERROR CODE (004C)
[1726757][E][NetworkClientSecure.cpp:309] available(): Closing connection on failed available check
[1726758][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[1726761][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[1726761][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[SinricPro:Websocket]: disconnected

[Sinric]: Disconnected from SinricPro[1726851][V][STA.cpp:206] _onStaEvent(): STA Connected: SSID: Censored-Wifi, BSSID: xx:xx:xx:xx:xx:xx, Channel: 11, Auth: WPA2_PSK
[1726852][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 112 - STA_CONNECTED
[1726852][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 112 - STA_CONNECTED
[1727296][D][NetworkManager.cpp:83] hostByName(): Clearing DNS cache
[1727891][V][NetworkInterface.cpp:78] _onIpEvent(): sta Got Same IP: 192.168.178.122 MASK: 255.255.255.0 GW: 192.168.178.1
[1727892][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 115 - STA_GOT_IP
[1727892][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 115 - STA_GOT_IP
[1727893][V][STA.cpp:171] _onStaArduinoEvent(): STA IP: 192.168.178.122, MASK: 255.255.255.0, GW: 192.168.178.1
[1728346][D][NetworkManager.cpp:127] hostByName(): DNS found IPv4 162.55.80.75
[1728347][V][ssl_client.cpp:68] start_ssl_client(): Free internal heap before TLS 195912
[1728347][V][ssl_client.cpp:75] start_ssl_client(): Starting socket (domain 2)
[1728378][V][ssl_client.cpp:170] start_ssl_client(): Seeding the random number generator
[1728381][V][ssl_client.cpp:178] start_ssl_client(): Setting up the SSL/TLS structure...
[1728381][D][ssl_client.cpp:196] start_ssl_client(): WARNING: Skipping SSL Verification. INSECURE!
[1728382][V][ssl_client.cpp:292] start_ssl_client(): Setting hostname for TLS session...
[1728382][V][ssl_client.cpp:313] ssl_starttls_handshake(): Performing the SSL/TLS handshake...
[1728744][V][ssl_client.cpp:334] ssl_starttls_handshake(): Verifying peer X.509 certificate...
[1728745][V][ssl_client.cpp:342] ssl_starttls_handshake(): Certificate verified.
[1728745][V][ssl_client.cpp:358] ssl_starttls_handshake(): Free internal heap after TLS 153860
[SinricPro:Websocket]: connected

[Sinric]: Connected to SinricPro[SinricPro:Websocket]: receiving data
[SinricPro.handleReceiveQueue()]: 1 message(s) in receiveQueue
[SinricPro.handleReceiveQueue()]: Signature is valid. Processing message...
[SinricPro:extractTimestamp(): Got Timestamp 1746358223
[2281705][V][STA.cpp:216] _onStaEvent(): STA Disconnected: SSID: Censored-Wifi, BSSID: xx:xx:xx:xx:xx:xx, Reason: 34
[2281705][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 113 - STA_DISCONNECTED
[2281706][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 113 - STA_DISCONNECTED
[2281706][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 34 - MISSING_ACKS
[2281707][E][ssl_client.cpp:36] _handle_error(): [data_to_read():405]: (-76) UNKNOWN ERROR CODE (004C)
[2281707][E][NetworkClientSecure.cpp:309] available(): Closing connection on failed available check
[2281708][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[2281709][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[2281710][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[2281710][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[SinricPro:Websocket]: disconnected

[Sinric]: Disconnected from SinricPro[2289211][E][NetworkManager.cpp:136] hostByName(): DNS Failed for 'ws.sinric.pro' with error '-54'
[2289211][V][ssl_client.cpp:68] start_ssl_client(): Free internal heap before TLS 196800
[2289212][V][ssl_client.cpp:75] start_ssl_client(): Starting socket (domain 2)
[2289213][E][ssl_client.cpp:120] start_ssl_client(): connect on fd 49, errno: 118, "Host is unreachable"
[2289213][I][NetworkClientSecure.cpp:153] connect(): Actual TLS start postponed.
[2289214][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
[2289214][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[2289220][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[2289220][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[2289221][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[SinricPro:Websocket]: disconnected
[2296721][E][NetworkManager.cpp:136] hostByName(): DNS Failed for 'ws.sinric.pro' with error '-54'
[2296721][V][ssl_client.cpp:68] start_ssl_client(): Free internal heap before TLS 196808
[2296722][V][ssl_client.cpp:75] start_ssl_client(): Starting socket (domain 2)
[2296723][E][ssl_client.cpp:120] start_ssl_client(): connect on fd 49, errno: 118, "Host is unreachable"
[2296723][I][NetworkClientSecure.cpp:153] connect(): Actual TLS start postponed.
[2296724][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
[2296724][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[2296730][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[2296730][E][NetworkClient.cpp:327] setSocketOption(): fail on 0, errno: 9, "Bad file number"
[2296731][V][ssl_client.cpp:364] stop_ssl_socket(): Cleaning SSL connection.
[SinricPro:Websocket]: disconnected

@kakopappa
Copy link
Contributor

According to Grok:

Reason: 34 - MISSING_ACKS: This error suggests that the ESP32 sent data to the WiFi router but did not receive the expected acknowledgment (ACK) packets. This can be caused by:
• Weak WiFi signal or interference.
• Router configuration issues (e.g., channel congestion, incompatible settings).
• Power supply problems affecting the ESP32’s WiFi module.
• Code or configuration issues in the ESP32 firmware.

May be try with another WiFi? Perhaps you could start one with your mobile phone and give it a go?

@mathiskir
Copy link
Author

According to Grok:

Reason: 34 - MISSING_ACKS: This error suggests that the ESP32 sent data to the WiFi router but did not receive the expected acknowledgment (ACK) packets. This can be caused by: • Weak WiFi signal or interference. • Router configuration issues (e.g., channel congestion, incompatible settings). • Power supply problems affecting the ESP32’s WiFi module. • Code or configuration issues in the ESP32 firmware.

May be try with another WiFi? Perhaps you could start one with your mobile phone and give it a go?

I was not able to recreate this issue with my phone hotspot, could you elaborate on what could be wrongly configured in my router? I have never had any of these issues with devices in my network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants