0.0.21 • Published 11 months ago
kinco v0.0.21
kinco
kinco iot platform open api
Usage Example
const Kinco = require('kinco');
const apiKey = "Your api key from kinco platform";
const kincoApi = new Kinco(apiKey));
//获取设备运行状态
const state = await kincoApi.getMachineState({
mach_no: 'your machine no',
page_no: 0,
page_size: 10,
});
//获取设备历史数据
const data = await kincoApi.getMachineData({
mach_no: 'your machine no',
data_start: new Date('2023-01-01').getTime(),
data_end: new Date().getTime(),
page_no: 0,
page_size: 10,
});
//获取设备报警数据
const errors = await kincoApi.getMachineErrors({
mach_no: 'your machine no',
data_start: new Date('2023-01-01').getTime(),
data_end: new Date().getTime(),
page_no: 0,
page_size: 10,
});
//设备配置参数下发
const response = await kincoApi.setMachine({
mach_no: 'your machine no',
mach_ixs: {
'lock': 1, // 参数键值对
}
});
0.0.20
11 months ago
0.0.21
11 months ago
0.0.18
11 months ago
0.0.19
11 months ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago