How to configure an ESP8266 module as a passing/intermediate node?

Hi everyone!

I'm working on a project : I'd like to set a network with four ESP8266 modules in which one is set as SENDER, one as RECEIVER and the other two nodes as intermediate/passing nodes that have to "route" a message send from the SENDER node to the DESTINATION (which isn't in its coverage range).

In a way, I would like to implement a sort of AODV routing protocol.

I've looked throughout the Net but I found nothing.

Any ideas?

You may get some ideas from this. ..https://tech.scargill.net/esp8266-mesh-experiment/