I tried doing something like this on an ESP32 last year, I wanted to understand how to do an actual mesh with devices that can't transmit and receive at the same time, but I didn't find documentation.

I managed to get 2 devices communicating across town at least ! (After having antenna issues)