nielstron / pyblnet

Automate wireless communication to UVR1611 via BL-NET
MIT License
6 stars 7 forks source link

Error with BLNET-Direct #18

Open henfri opened 5 years ago

henfri commented 5 years ago

Hello,

I just tested the latest version. With that, I get this error. Traceback (most recent call last): File "H:/HeimNetzwerk/UVR/pyblnet_updated_orig/pyblnet/example.py", line 47, in print(blnet.get_latest()) File "H:\HeimNetzwerk\UVR\pyblnet_updated_orig\pyblnet\pyblnet\blnet_conn.py", line 322, in get_latest frames.update(self._split_latest(data, frame)) File "H:\HeimNetzwerk\UVR\pyblnet_updated_orig\pyblnet\pyblnet\blnet_conn.py", line 344, in _split_latest frames[frame] = BLNETParser(data[1:LATEST_SIZE + 1]) File "H:\HeimNetzwerk\UVR\pyblnet_updated_orig\pyblnet\pyblnet\blnet_parser.py", line 76, in init self._convert_speed(speed[channel]), 3) TypeError: type NoneType doesn't define round method

Process finished with exit code 1

With the previous version, I did not get this error. I am not sure, what the reason could be... Could it be related to https://github.com/nielstron/pyblnet/issues/6 ?

Regards, Hendrik

nielstron commented 3 years ago

The BLNET component seems to use the "direct_ta" protocol. This protocol is not at all supported as of now, so the error is to be expected. Using the protocol has been disabled by default in current versions.

nielstron commented 3 years ago

33 seems to be related

zwotzie commented 6 days ago

should be fixed with merged: https://github.com/nielstron/pyblnet/pull/43