[Answered] Is the sockets API supported?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

[Answered] Is the sockets API supported?

Postby kolban » Sun Sep 18, 2016 11:48 pm

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

jmattsson
Posts: 34
Joined: Fri Jun 03, 2016 5:37 am
Contact:

Re: Is the sockets API supported?

Postby jmattsson » Mon Sep 19, 2016 1:24 am

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.

ESP_Sprite
Posts: 8926
Joined: Thu Nov 26, 2015 4:08 am

Re: Is the sockets API supported?

Postby ESP_Sprite » Mon Sep 19, 2016 10:27 am

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: No registered users and 113 guests