You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Flavio Castro Alves Filho <fl...@gmail.com> on 2021/06/03 15:06:42 UTC

Question about USRSOCK deployment

Hello,

I am working on the integration between ESP8266 module and
STMF4Discovery-based board using UART communication.

I am implementing a thread where I use USRSOCK to interface with the
NuttX network infrastructure and the netutils/esp8266 library to send
commands to the module.

My project reference is the example for GS2200m available in NuttX source code.

In this project, when we have the map between the requested functions
and its execution (handlers array in
https://github.com/apache/incubator-nuttx-apps/blob/1140bebfc0bef2b92037341e0a94437fa3fecd3e/wireless/gs2200m/gs2200m_main.c#L139),
I can see the execution calls for sendto() and recvfrom() functions.

These functions are commonly associated with UDP communication.

In my case, I need to implement TCP communication, where send() and
recv() are the main functions.

I would like to ask for advice about how to add support for send() and
recv() commands in USRSOCK.

Best regards,

Flavio

-- 
Flavio de Castro Alves Filho

flavio.alves@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves