ESP as slave Wi-Fi chip

I am looking at a way to use an ESP8266 or an ESP32 as slave Wi-Fi chip on my host MCU using FreeRTOS. This project will use AWS so having support for FreeRTOS+TCP would be ideal.

Is there any implementation somewhere that I fail to discover or any similar project that could help me ? I think that on the ESP side ESP-HOSTED is what I need but as far as I know there is no implementation for FreeRTOS+TCP to be used with ESP-HOSTED.

Kind regards.

This are some implementation Wifi, using ESP32

https://docs.aws.amazon.com/freertos/latest/userguide/freertos-wifi.html#freertos-wifi-example

https://docs.aws.amazon.com/freertos/latest/userguide/ble-demo.html#ble-demo-wifi

Thank you for your answer. I found these examples but my question is about how to use an ESP for Wi-Fi when the master MCU is another MCU like a Nordic or a STM32 for instance ?

Do you need something like that?