Hello Amit.
At this time, no out-of-the-box Edge 2 Edge communication is available. And Edge devices can not act as child devices.
This question is quite similar to this one on MS Learn Q&A at first sight.
in that case, passing data between edge devices, you should do:
- writing two modules (one on each device) which use an alternative protocol, picking up messages from the A route and putting it back on the B route. There should be no usage of $upstream in device A.
But this only works when both devices are connected to the internet (at least once) so the security and deployment manifest and module twins can be set.
After that, device A could be used without an actual internet connection but it will not be updated anymore because it's out of reach of the IoT Hub.