esp-mesh-lite icon indicating copy to clipboard operation
esp-mesh-lite copied to clipboard

Get topology of network (AEGHB-199)

Open redfast00 opened this issue 2 years ago • 2 comments

For debugging purposes, I'd like to visualize the topology of the network, in order to be able to draw a tree like below (but with MAC-addresses for every node): image

Is there an API I can use to retrieve this information?

redfast00 avatar May 29 '23 15:05 redfast00

We‘re going to do this in the future, if you are interested in this, it's welcome to push a PR. you can get children's MAC in each node, and report the list to the root node, then you can get all nodes topology in the mesh-network.

xcguang avatar May 30 '23 01:05 xcguang

Alright, I opened a draft PR in https://github.com/espressif/esp-mesh-lite/pull/8 (the code is not ready yet, but this shows the approach I'm going to take).

redfast00 avatar Jun 01 '23 21:06 redfast00