Build a xbee mesh enviroment

Hi everyone!
I’m using xbee for a few times.
The topology is star with one coordinator and several routers.
I connected Arduino nano with Xbee router as a sensor node to collect like humidity end temperature.
And receive API frames from routers via Xbee coordinator with API mode 2.
Now I want to use the function like mesh topology which allows A node receive B node’s data and route it to C node.
The goal is to make distance between coordinator and sensor node as long as possible.
How should I start it?

Just like before. The only difference is where you place your routers and the Coordinator.

As long as any two nodes are in range of each other, they will forward the data on.
A R1 R2 R3 R4

Thanks for reply, mvut!
I want to know if the router can forward API frame automatically to next node?
EX:
three router xbee A B C
what I thought is A send API frame to B, then B read the frame and repackage another new API frame with it’s own data and send to C node…

Yes it can. The only difference in how the module functions with API mode over AT is how the data is expected or will be provided via the UART. That is it. All other functions are the same.