美文网首页
生产实习接口

生产实习接口

作者: 松饼水果十指鱼 | 来源:发表于2018-09-04 16:32 被阅读0次
    1. 获取实时数据(温度、压力、液位)
    method IP path
    GET xxx /getRealTimeData

    返回格式:

    { 
        errno: 0,
        data: {
            temperature: 33,
            pressure: 44,
            level: 55        
        }
    }
    
    1. 获取历史数据
    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        
         }]
    }
    
    1. 获取最近一分钟数据(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        
         }]
    }
    
    1. 修改预警位置
    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'
    }
    

    相关文章

      网友评论

          本文标题:生产实习接口

          本文链接:https://www.haomeiwen.com/subject/tazgwftx.html