请求协议:HTTP
请求类型:GET
请求地址:http://service.easylinkin.com/api/device/v1/listAll
请求Headers:

Key Value 字段说明
Content-Type application/json POST请求方式
api-key - 每个账户会自动生成32字符的api密钥,如:da9cce31291348e3b3e6ff21b3d69329
Nonce - 8字符的随机数,每字符为0~9,如:00123456
Timestamp - 毫秒格式的当前时间戳,(自1970-01-01 00:00:00开始的毫秒数);LinkOS会拒绝超过3分钟之前生成的请求,如1573716339046
Signature - 每个账户会自动生成32字符的api-secret,如:cd1f59df0aa74a28b4f9397926efd6,以”[Nonce][Timestamp][api-secret]”形式拼接字符串,并计算SHA1值,作为Signature值,如:“001234561573716339046cd1f59df0aa74a28b4f9397926efd6”计算结果为:28a5160557069d23eb8c10a531599ad60e4030d8,以小写形式填写
appId - 非必填,每个项目对应的app唯一值,传入时会查对应的项目下的设备

响应

参数名称 字段类型 是否必填 字段说明
msg string 是 响应消息
code string 是 响应码
success bool 是 查询是否成功
data object 否 是否分页查询,为空时默认查询前100条,单页显示

data字段的结构如下:

参数名称 字段类型 字段说明
Cretate Time date 创建时间
Modify Time date 修改时间
Device_id string 设备code
Name string 设备名称
Project_name string 项目名称
Device Unit object数组 设备型号
Group_name string 分组名称
Imsi string 设备是NB移动平台设备时的入网参数
State integer 设备状态 0禁用,1在线,2离线

Device Unit字段的结构如下:

参数名称 字段类型 字段说明
ID numeber 型号ID
Name string 型号名称
Code string 型号编码
protocolld integer 通信协议
Device Type object数组 类型信息
Physics Model string 物理模型
Device Version string 物模型版本
Model Level string 产品等级

Device Type字段的结构如下:

参数名称 字段类型 字段说明
ID number 类型ID
Name string 类型名称
Category integer 类型分类

results matching ""

    No results matching ""