caobo171 / node-zklib

This is a lightweight of node.js module to connect to biometrix attendance device for examples ZKTeco
70 stars 59 forks source link

Type of data needed #20

Closed csulit closed 4 years ago

csulit commented 4 years ago

can this be a string of bio id? or data needs to be converted??

async executeCmd(command, data=''){ return await this.functionWrapper( ()=> this.zklibTcp.executeCmd(command, data), ()=> this.zklibUdp.executeCmd(command , data) ) }

// unlock the door  
executeCmd(CMD.CMD_DELETE_USERTEMP, object?)
caobo171 commented 4 years ago

yes, it 's needed to be converted to buffer, it 's quite hard :))