You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While pytemperaturecontrol appears to find and communicate with the device, the latest version of Python uses unicode strings, which appears to mess up the communications. Running the example script returns
TypeError: unicode strings are not supported, please encode to bytes: 'version'
From testing here it seems adding a b to line 60 in julabo.py so it reads:
self.serial.write(b'version')
rectifies that problem.
The same modification appears to work with temperature, status etc.
The text was updated successfully, but these errors were encountered:
While pytemperaturecontrol appears to find and communicate with the device, the latest version of Python uses unicode strings, which appears to mess up the communications. Running the example script returns
TypeError: unicode strings are not supported, please encode to bytes: 'version'
From testing here it seems adding a b to line 60 in julabo.py so it reads:
self.serial.write(b'version')
rectifies that problem.
The same modification appears to work with temperature, status etc.
The text was updated successfully, but these errors were encountered: