Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Command API Documents For V2

喂你脚下有坑 edited this page May 27, 2019 · 1 revision

1. Setting Building Status (Normal / Emergency)

URL : http://SERVER_ADDR/command/status

Request Parameters :

Name Type Explanation
uid Integer User ID
token String User Token
id Integer Building ID
status Integer Target Status (0: Normal, Otherwise: Emergency)

Request Permission : admin

2. Control Light State

URL : http://SERVER_ADDR/command/command

Request Parameters :

Name Type Explanation
uid Integer User ID
token String User Token
command String Json String

Request Permission : force or NULL