Connect two ESP8266 using serial connection

Hi Koraks

Okay, I will explain this a little further.

I need to do a gateway that connecto several ESP using ESP-NOW (obligatorily) to MQTT(obligatorily), Its obligatorily to use first ESP-NOW and later MQTT, so a i need a gateway that receive all the information about ESP-NOW (input of gateway), convert it, and send all these information to MQTT (network)(output of gateway).

In fact, I need to convert the information that several ESP sends using ESP-NOW, to send using MQTT. To do that, i am going to use an ESP8266 to receive all the information about ESP-NOW (master/slave), and connect this ESP8266 with another ESP8266 to send this information to MQTT.

The reason to use two is because one of them is using ESP-NOW connection, and the other WiFi connection to MQTT. I Just need a method to communicate the two ESP8266 without use WiFi module (because the wifi module is already used).

This is to my final degree project, this is the reason why i have to use this protocol communicatión obligatorily.

Thanks for yout time!