123456789 |
- 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),
- }
|