caobo171 / node-zklib

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

CMD_OPTIONS_RRQ returns = instead 2 in some instances. #37

Open summerswell-ie opened 2 years ago

summerswell-ie commented 2 years ago

I am attempting to get some options from the device, using the CMD_OPTIONS_RRQ command. I get the following data back:

�~SerialNumber=ACYN174660341�
�l�~Platform=ZLM60_TFT�
����~DeviceName= �
����~ProductTime==017-11-20 09:17:33�
�U��~ZKFPVersion=10�
�0M�TCPPort=4370�
���IPAddress=19=.168.1.42�

As can be seen in ProductTime and IPAddress the character '2' is converted to '='. Any idea what could be causing this?

summerswell-ie commented 2 years ago

All these are being retrieved using the following:

const IPAddress = await zkInstance.executeCmd( 11, 'IPAddress');
console.log( IPAddress.toString() );