
Bellwin | Appendix
107
HTTP
API example
Users can control the output outlet switch through API provided by
Http/Https protocol. URL format is given as follows:
http://DeviceIP/out_ctrl.csp?port=value&ctrl_kind=value
List of variables:
Domain Name
Description
port
To control output (outlet) lines, we support
controlling multiple lines; using commas to
separate different lines (eg: 1, 3, 5).
ctrl_kind
Control types see
※
When control the device through Http/Https, for the sake of normal
operation, use Http/Https basic authentication method to input the admin
account and password of the device.
Output (Outlet) Control Kind Code Table:
Value
Description
1
Output (Outlet) on
2
Output (Outlet) off
3
Output (Outlet) Reboot
4
Output (Outlet) Reboot
Data back-transmission format is as follows:
{"OutCtrl":[{"Id":value,"Ret":value,"RetStr":""},…]}
List of variables:
Domain Name
Description
Id
Controlled Output (Outlet) Line
Ret
On/off status, for the relevant data, see