yozik04 / nextion

Nextion serial client
GNU Lesser General Public License v3.0
25 stars 10 forks source link

Reading negative integer value from variable #21

Closed Chronocento closed 3 years ago

Chronocento commented 3 years ago

Hi, it's me again :) I'm having some troubles reading a negative integer from a variable: if it's ≥0, I can get its value no problem, but with, for example, -1, this is what I get:

(<class 'nextion.exceptions.CommandFailed'>, CommandFailed("Unknown response code 0x71 for command: 'get varUTC.val'",), <traceback object at 0x75684a30>) Unknown data received: b'ff7102000000' (<class 'TypeError'>, TypeError("int() argument must be a string, a bytes-like object or a number, not 'NoneType'",), <traceback object at 0x756864e0>)

Any clue? Thanks!

yozik04 commented 3 years ago

Hi, what lib version?

yozik04 commented 3 years ago

Related to #18

Chronocento commented 3 years ago

Sorry, didn't notice the new release! I'll try and report back, but I'm quite sure that it will be solved with the update, sorry!

Chronocento commented 3 years ago

Works perfectly with 1.7.1, sorry for having bothered you!