usage.js
551 Bytes
//调用
var sdk = require('../dist/index');
//开始盘点
sdk.start({
host: '172.16.13.6', //IP
port: '9761', //端口
filter: { //设置灵敏度的过滤
'on': '1',
rssi: -60
},
frequencys: [{ //天线的定频
ant: 0,
freq: 10
}, {
ant: 1,
freq: 10
}, {
ant: 2,
freq: 10
}, {
ant: 3,
freq: 10
}],
inventoryTime: 400, //设置盘点时长
power: [15, 0, 0, 0] //功率设置
}, function (data) {
console.log(data);
});