renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
192 stars 82 forks source link

AWS WiFi Sockets Wrapper Migration for FreeRTOS Plus TCP 4.0.0 #316

Closed GodavarthyAravinda closed 8 months ago

GodavarthyAravinda commented 11 months ago

Issue

sockets_wrapper.c and sockets_wrapper.h have been renamed to tcp_sockets_wrapper.c and tcp_socketswrapper.h to keep up with the upstream project changes. API has been renamed with prefix TCP. Error codes have also been renamed according to the upstream project.

Workaround

Existing projects using AWS DA16XXX WiFi Sockets Wrapper or AWS Silex WiFi Sockets Wrapper shall:

  1. Update includes to use tcp_sockets_wrapper.h instead of sockets_wrapper.h.
  2. Refactor API calls based on new TCP_ prefix.
  3. Refactor error codes based on the table below
New Error Codes | Old Error Codes -- | -- TCP_SOCKETS_ERRNO_NONE | SOCKETS_ERROR_NONE TCP_SOCKETS_ERRNO_ERROR | SOCKETS_SOCKET_ERROR TCP_SOCKETS_ERRNO_EWOULDBLOCK |   TCP_SOCKETS_ERRNO_ENOMEM | SOCKETS_ENOMEM TCP_SOCKETS_ERRNO_EINVAL | SOCKETS_EINVAL TCP_SOCKETS_ERRNO_ENOPROTOOPT |   TCP_SOCKETS_ERRNO_ENOTCONN |   TCP_SOCKETS_ERRNO_EISCONN |   TCP_SOCKETS_ERRNO_ECLOSED |   TCP_SOCKETS_ERRNO_PERIPHERAL_RESET |   TCP_SOCKETS_ERRNO_ENOSPC |   TCP_SOCKETS_ERRNO_EINTR |   TCP_SOCKETS_ENRNO_SOCKETS | SOCKETS_ENOSOCKETS TCP_SOCKETS_ENRNO_DNS | SOCKETS_EDNS