dayjaby / zebra-scanner

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

Return numeric attribute values as numbers (not string) #14

Closed Sthing closed 3 years ago

Sthing commented 3 years ago

I have not found a textual description of the datatype in the attributes anywhere, But in zebra-scanner-4.4.1-8/Native/CsCommon/src/CsCommon.cpp in the SDK there is a long if-elseif-...-else block that goes through the types.

With this patch the numeric datatypes are returned as integers instead of strings.

dayjaby commented 3 years ago

Thank you for the work!