First of all a hint to the more general forum rules ☝️
Please do not always use full quotes and write in there too 🚫
The Shelly devices are based on mongoose-os, which is a special unix derivative for IoT systems.
You can communicate between the Shelly's (ddd) of Gen.1 and Gen.2 with http commands among others.
The difference is the syntax. But I had already linked both above.