[Answered] Is the sockets API supported?
[Answered] Is the sockets API supported?
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?
Last edited by kolban on Mon Nov 07, 2016 5:43 am, edited 1 time in total.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Is the sockets API supported?
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.
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Re: Is the sockets API supported?
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.
Who is online
Users browsing this forum: Bing [Bot], MicroController and 81 guests