kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
285 stars 166 forks source link

[webSocketEvent] Webservice disconnected from server! #307

Open VeryPrivat opened 5 years ago

VeryPrivat commented 5 years ago

WiFi connected works well. Afterwards I always get the message [webSocketEvent] Webservice disconnected from server! in the serial terminal I've used the sinric/arduino_examples/switch_example2.ino example I've added the wifi SSID, the wifi Password, the Sinric API Key and the device ID Key (for on an off) and changed baud rate to 9600. My device on Sinric.com is a light named Lampe. Test button results in a green success! Message I'm using an ESP8266-12E Additionally I've replaced webSocket.begin(SERVER_URL, SERVER_PORT, "/"); with webSocket.begin("198.23.139.123", 80, "/"); to avoid DNS errors with the same result...

Dependency Graph |-- 2.1.1 | |-- <Ethernet(esp8266)> 1.0.4 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 1.0 |-- 5.13.5 |-- 1.0 Please give me some hints how I could solve this problem...

kakopappa commented 5 years ago

Not sure why. Are you getting disconnected immediately or after some time ?

Try using a mobile hotspot whether you have the same issue.

VeryPrivat commented 5 years ago

I get disconnected immediately. The message appears in serial terminal immediately after I get the

Connecting to Wifi: SSID
.....
WiFi connected. IP address: xxx.xxx.xx.xxx
[webSocketEvent] Webservice disconnected from server!
[webSocketEvent] Webservice disconnected from server!
...

When I try to use a hotspot of my Mobile Phone it has the same behavior...