9 years, 10 months ago.

ESP8266 socket library

Is there any ESP8266 socket based library? It will be really helpful to use it with toons of libries like websocket

I was planning to do it, then I realised it isn't that trivial :D. I would be willing to help with someone elses lib, but currently not planning to start it myself.

posted by Erik - 23 Jan 2015

Working on it...

posted by Austin Blackstone 28 Apr 2015

1 Answer

9 years, 8 months ago.

I have a very crappy and unfinished implementation using ChibiOS here:

http://github.com/vpcola/MikroChibiOS/blob/master/esp8266/wifisocket.h

Still under development, at least for now I can run multiple tcp connections from different threads using the esp8266. Only outgoing sockets for now, the server implementation does not yet work (bind, listen, accept calls needs to be implemented), but I should be able to implement it shortly (If I can find the time). My objective was to use polarSSL to implement a secure web server.

I'm currently porting this code to embed (SerialDriver for usart read/write and the use mbed-rtos to use threads and mutex), I'm having a hard time de-coupling ChibiOS related code from a platform independent one.