const {intell} = require('../https/intell.js') module.exports = { //查看设备基本信息(返回中有数据流,但没有值) getBasic:(divice_id,key) => intell('/devices/' + divice_id, 'GET', key), //查看设备数据流 getData:(divice_id,key) => intell('/devices/'+ divice_id + '/datastreams', 'GET',key), //控制设备,发送数据 postData:(divice_id,key,params) => intell('/cmds?device_id=' + divice_id, 'POST',key,params), }