Hubs not broadcasting and/or observing #1926
-
Hello, I have two Inventor hubs which refuse to broadcast and/or observe data. One and a half years ago they were working fine with the beta version, sending and receiving without issues (using Broadcast from pybricks.experimental at the time). I recently tried to use them again with the most recent stable version but it seems that they broadcast no data. To test it, I wrote these two pieces of code, one per hub:
Normally I would expect to see a "2" displayed on hub 1 and an "1" on hub 2, instead the display never changes and the while cycle keeps running. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hub = InventorHub()
hub = InventorHub(broadcast_channel = 1)
hub = InventorHub(observe_channels = [2]) Are these different tests or all in one script? This doesn't seem right. You'd want just one hub initializer, like so: hub = InventorHub(broadcast_channel=1, observe_channels = [2]) And for the other hub: hub = InventorHub(broadcast_channel=2, observe_channels = [1]) Could you try again after updating as above? |
Beta Was this translation helpful? Give feedback.
Are these different tests or all in one script? This doesn't seem right.
You'd want just one hub initializer, like so:
And for the other hub:
Could you try again after updating as above?