air_condition
  1. admin
air_condition
  • auth
    • login
      GET
    • logout
      GET
  • guest
    • get_panel_status
      GET
    • remote_control
      POST
  • admin
    • admin_control
      POST
    • get_all_device_status
      GET
    • get_device_status
      GET
  • check
    • check_in
      POST
    • check_out
      POST
  • bill
    • bill_cost
      GET
    • bill_detail
      GET
  • report
    • get_daily_report
      POST
    • get_weekly_report
      POST
  1. admin

get_device_status

开发中
GET
/get_device_status
get the status of a specified device.

请求参数

Query 参数
device_id
integer 
必需
示例值:
123

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/get_device_status?device_id=123'

返回响应

🟢200成功
application/json
Body
working
boolean 
必需
true is working
mode
boolean 
必需
true is warm mode
env_temperature
number 
a float
必需
target_temperature
number 
a float
必需
speed
string  | null 
可选
low, mid, high
total_cost
number 
a float
必需
示例
{
    "working": "true",
    "mode": "warm",
    "env_temperature": "27.2",
    "target_temperature": "100.1",
    "speed": "mid",
    "total_cost": "996.3"
}
修改于 2023-11-30 05:54:08
上一页
get_all_device_status
下一页
check_in
Built with