Gateway

init gateway

1.scan gateway (only in setting mode gateway can be discovered)

 

2.connect gateway

 

3.config wifi and nickname for gateway and do init by bluetooth

 

4.Request cloud API:Query the init status of the gateway to confirm gateway is added success

 

5.Request cloud API: Upload detail info of gateway to upload gateway info to server