Page 1 of 1

Sockets on ESP32?

Posted: Sun Dec 05, 2021 9:50 am
by AndyGadget
Francesco, some time ago we were trying to get a simple implentation of SOCKETs working as a variation of WGET and you decided this would have to be a separate command to be investigated in the future. Is SOCKET still a possibility?

Re: Sockets on ESP32?

Posted: Sun Dec 05, 2021 10:06 am
by cicciocb
HI Andy,
honestly I forgot this point.
Could you just help me to remember?
What is the goal?

Thanks

Re: Sockets on ESP32?

Posted: Sun Dec 05, 2021 10:55 am
by AndyGadget
The original thread mentioning this is here : [External Link Removed for Guests]
I was trying to use a websocket for receiving data for my earthquake display but this method was not implented in Annex. You a sent me a couple of modified Annex versions to try based on wget which worked, but were not reliable so we dropped it at the time and I moved to wgetasync to retrieve the data.
Since that time, I think a couple of users have expressed and interest in websockets as an efficient way of reading data from other sensors and networks.

Re: Sockets on ESP32?

Posted: Sun Dec 05, 2021 11:12 am
by cicciocb
Ok,
if I understand the goal is to open a websocket connection and leave it open receiving data as soon as they are available.
Always hard to make it work with the memory limitations of the ESP8266 but should work with the ESP32