跳至主要內容

获取指定ID设备在线状态

eview小于 1 分钟loctube-api

获取指定ID设备在线状态

接口地址:/device/instance/{id}/state
请求方式:GET
请求数据类型:application/x-www-form-urlencoded
响应数据类型:*/*
接口描述:
请求参数:
请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id设备IDpathtruestring

响应状态码-200:
响应参数:

参数名称参数说明类型schema
message消息提示string
result数据内容,可用值:{text=未启用, value=notActive},{text=离线, value=offline},string
status状态码integer(int32)integer(int32)
code业务码string
timestamp时间戳(毫秒)integer(int64)integer(int64)

响应示例:

{
	"message": "",
	"result": "",
	"status": 0,
	"code": "",
	"timestamp": 0
}