- 获取实时数据(温度、压力、液位)
method |
IP |
path |
GET |
xxx |
/getRealTimeData |
返回格式:
{
errno: 0,
data: {
temperature: 33,
pressure: 44,
level: 55
}
}
- 获取历史数据
method |
IP |
path |
GET |
xxx |
/getHistoryData |
返回格式:
{
errno: 0,
data: [{
time: yyyy-mm-dd hh:yy:ss
temperature: 33,
pressure: 44,
level: 55
},
{
time: yyyy-mm-dd hh:yy:ss
temperature: 33,
pressure: 44,
level: 55
}]
}
- 获取最近一分钟数据(10s为单位)
method |
IP |
path |
GET |
xxx |
/getLastMinute |
返回格式:
{
errno: 0,
data: [{
time: 0
temperature: 33,
pressure: 44,
level: 55
},
{
time: 10
temperature: 33,
pressure: 44,
level: 55
},
{
time: 20
temperature: 33,
pressure: 44,
level: 55
},
{
time: 30
temperature: 33,
pressure: 44,
level: 55
},
{
time: 40
temperature: 33,
pressure: 44,
level: 55
},
{
time: 50
temperature: 33,
pressure: 44,
level: 55
},
{
time: 60
temperature: 33,
pressure: 44,
level: 55
}]
}
- 修改预警位置
method |
IP |
path |
POST |
xxx |
/changeWarning |
params |
type |
说明 |
示例 |
needChange |
string |
需要改变的参数 |
(1)temperature (2)pressure (3)level |
upvalue |
number |
改变的上界值 |
1234567 |
lowvalue |
number |
改变的下界值 |
1234567 |
返回格式:
{
errno: 0,
errmsg: 'success'
}
网友评论