st-one-io / node-open-protocol

This node is an implementation of the Atlas Copco's Open Protocol. This node was created by Smart-Tech as part of the ST-One project.
GNU General Public License v3.0
36 stars 35 forks source link

Mid 0061 toolSerialNumber Miss Type #3

Closed tloftis closed 5 years ago

tloftis commented 5 years ago

Solution, In the file "src/mid/0061.js" Line 406 I changed toolSerialNumber from type "number" to type "string"

Ran into this while testing it out on an Atlas 4000 series, the tool serial number started with an F and failed to parse into a number triggering a parseError. But after the solution, the serial number came out correctly

Node version "v8.11.2", Node Open Protocol version "1.0.2"