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