@Iyad-Nahas This is a feature I've been dreaming about since I ported MySensors to ESP!
I had a quick look at the code and it seems doable. The biggest issue you'll probably encounter is that all the WiFi stuff is hidden since MySensors 2.0beta.
Maybe @hek can point you in the right direction?