1. The third-party application requests to add sub-devices;
2. The third-party cloud requests the gateway to allow access to the network;
3. Tuya Cloud issues the gateway permission network instruction;
4. The sub-device adds the gateway network;
5. The gateway adds the sub-device;
6. Sub-device storage;
7. Third-party cloud polling to query the distribution network equipment table, because the distribution network is an asynchronous process, it is recommended to carry the first discovery time 1s polling interface once, and stop after polling the distribution information (ie: return the result Contains device information), timeout time 100s.