Page 1 of 1

[Answered] Is the sockets API supported?

Posted: Sun Sep 18, 2016 11:48 pm
by kolban
When working with TCP/IP on an ESP8266, I find that I can use the "espconn_*" functions ... but if using RTOS, I can use an implementation of the standard "sockets" API as an alternative. Does anyone know at this early date if the ESP32 provides support for sockets programming?

Re: Is the sockets API supported?

Posted: Mon Sep 19, 2016 1:24 am
by jmattsson
I haven't tried it, but the ESP IDF does build lwip/app/sockets.c which would suggest it is indeed available. Another item also pointing in that direction is the mbedtls component which typically uses the socket interface of lwIP.

Re: Is the sockets API supported?

Posted: Mon Sep 19, 2016 10:27 am
by ESP_Sprite
Yes, with FreeRTOS as the standard in esp-idf, the sockets interface is fully supported. We will probably support the espconn_* interface as well eventually, but chances are this will be implemented as a layer on top of the BSD sockets.