dayjaby / zebra-scanner

Read barcodes in python with zebra barcode scanner
MIT License
24 stars 18 forks source link

Allow fetch_attributes() to be called with string parameter from Python #13

Closed Sthing closed 4 years ago

Sthing commented 4 years ago

I have a Zebra MS4717 fixed mount scanner.

Calling fetch_attributes() without parameters does not work as expected here: The first step (CMD_RSM_ATTR_GETALL) works as expected and returns a very long list of parameters. The second step with a call to CMD_RSM_ATTR_GET with a very long argument fails.

In /var/log/zebra-scanner/corescannerd/CLIENTLIB_COMMON_2020.10.07_13-27-47_001.log the error is: 20201007 | 13:27:48:829 | CLIENTLIB_COMMON | | | 32075 | 1996090064 | Cslibcorescanner_xml.cpp [705] | INFO | | | response not OK

The complete log is here: https://gist.github.com/Sthing/ace9d3d5e83d1034252069f9a878007b

With this patch I can call fetch_attributes() for the parameters I actually care about.

dayjaby commented 4 years ago

Nice addition. Thanks!