On Thursday, February 6, 2020 at 10:20:53 AM UTC-6, Thomas Keffer wrote:
>
> This remote debugging is hard!
>
> Give this version a try.
>
> -tk
>
>
>
I can appreciate the difficulty, having done remote development (in
assembly language, on an obscure Sharp platform, in the distant past).
Thank you for your diligence.
Here's the output from the latest driver.
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/7b25f8c9-ed63-42b7-b094-ebbbde2afccd%40googlegroups.com.
# PYTHONPATH=bin python3 bin/weewx/drivers/ws23xx.py --readings
--port=/dev/ttyS0
Traceback (most recent call last):
File "bin/weewx/drivers/ws23xx.py", line 2116, in <module>
data = s.get_raw_data(SENSOR_IDS)
File "bin/weewx/drivers/ws23xx.py", line 789, in get_raw_data
raw_data = read_measurements(self.ws, measures)
File "bin/weewx/drivers/ws23xx.py", line 2029, in read_measurements
nybbles = ws2300.read_batch(batches)
File "bin/weewx/drivers/ws23xx.py", line 1201, in read_batch
response = self.read_data(address + start_pos, bytes_)
File "bin/weewx/drivers/ws23xx.py", line 1148, in read_data
if not self.write_address(nybble_address):
File "bin/weewx/drivers/ws23xx.py", line 1071, in write_address
self.write_byte(byte)
File "bin/weewx/drivers/ws23xx.py", line 1012, in write_byte
self.serial_port.write(data)
File "bin/weewx/drivers/ws23xx.py", line 947, in write
os.write(self.serial_port, data)
TypeError: a bytes-like object is required, not 'str'