-->
Page 1 of 1

ESP8266 websockets slow

PostPosted: Sun Dec 13, 2015 4:51 pm
by chrisdudeperson
Hi guys,

I've been using the ESP8266 to push data to a linux server running NodeJS on my home network for a couple of weeks now with great success and good connection speed. Today I've decided that I'd like my server to be hosted online, so I've signed up to Amazon Web Services and created a linux server with NodeJS on there. I've tested it using a websockets plugin for chrome and it's fairly quick and responsive. However when I use the ESP8266 with this server, it takes quite a while (~1 minute) to handshake with the server and then pushing to the server seems to take around 10 seconds from the ESP8266 to the server and it likes to disconnect from the server every so often too. I'm using the libraries developed by themindfactory for the Arduino IDE and the WebSocketClient library to deal with the websockets.

Any ideas about what it going wrong here? If you'd like anymore idea please do ask :)

Thanks,
Chris