sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
227 stars 121 forks source link

sinricpro server disconnects when using cellphone hotspot #347

Closed lilbuzz closed 7 months ago

lilbuzz commented 7 months ago

I am trying to test WiFi reconnection strategies. I am using a Wemo D1 Mini ESP32 board. When I connect directly to my router, everything works fine, but when testing with a cellphone hot spot the sinric pro server disconnects moments after connecting.

here is debug output: 14:00:53.358 -> Connected to the WiFi network. 14:00:53.358 -> WiFi status: 3, WL_CONNECTED 14:00:53.358 -> Connection SSID: Bussey 14:00:53.358 -> [SinricPro]: Device "xxxxx" does not exist. Creating new device 14:00:53.405 -> [SinricPro:add()]: Adding device with id "xxxxx". 14:01:08.388 -> 2106-02-07T01:28:33Z 14:01:08.388 -> In central standard time. 14:01:08.431 -> Finished setup. 14:01:08.431 -> [SinricPro:Websocket]: Connecting to WebSocket Server using SSL (ws.sinric.pro) 14:01:08.431 -> [SinricPro:Websocket]: headers: 14:01:08.431 -> appkey:xxxxx 14:01:08.431 -> deviceids:xxxxx 14:01:08.431 -> restoredevicestates:false 14:01:08.431 -> ip:192.168.0.225 14:01:08.431 -> mac:C8:F0:9E:F1:4F:60 14:01:08.431 -> platform:ESP32 14:01:08.431 -> SDKVersion:3.0.0 14:01:22.438 -> [SinricPro:Websocket]: disconnected 14:01:22.438 -> Disconnected from SinricPro 14:01:36.938 -> [SinricPro:Websocket]: disconnected 14:01:36.938 -> Disconnected from SinricPro

lilbuzz commented 7 months ago

I found that I was using fixed ip address for ElegantOTA with my router. This ip address did not work with the cell phone hotspot. After removing that, the connection is working as it should. I'm closing this issue.