• K8凯发(中国)

    搜索 IoT 数据记录
    请求

    http://ip:port/iot/QueryRecord?deviceid={$deviceid}&channel={$channel}&start=

    {$start}&stop={$stop}}&type={$type}&status={$status}

    回复

    {"result":{$result}

    "list":[{

    "deviceid":{$deviceid},

    "channel":{$channel},

    "type":{$type},

    "checktype":{$checktype},

    "value":{$value}

    "status":{$status},

    "time":{$time}

    }]}

    deviceid IoT 设备的 ID。 若全部搜索则为-1

    type 数据类型, 作为输入参数时, 如果为-1 表示读取所有

    start 开始时间

    stop 结束时间

    status 状态: 0--正常; 1--超上限报警; 2--超下限报警; -1 全部搜索

    channel IoT 设备通道号, 缺省为 0

    type 数据类型, 缺省为-1 表示所有

    value 数值

    time 检测时间


    数据类型定义:

    #define con_IoT_Temperature 1 //温度, 1 位小数

    #define con_IoT_Humidity 2 //湿度, 1 位小数