-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
We are starting to have various i/o methods now. This is very exciting, but they are a bit all over the place at the moment. In Pybricks 2.0, we used to have the pybricks.messaging module, so I've been wondering if it makes sense to collect messaging related classes or streams here.
These are the ones I could think of so far:
pybricks.messaging
BluetoothMailboxServer()(exists since 2.0, needs reimplementation on EV3)BluetoothMailboxClient()(exists since 2.0, needs reimplementation on EV3)Radio(): (exists since 3.X, currently pre-instantiated at hub.ble)AppData(): exists since 3.X, currently in pybricks.toolsbleio: maybe, see USB stdio pybricks-micropython#332usbio: maybe, see USB stdio pybricks-micropython#332
I've not really been a fan of having the instance of the broadcasting class at hub.ble. But as it was the only messaging tool we had, it was reasonable at the time to avoid adding another module. But as we are adding more, we can re-evaluate it. By having it separate, we don't have to have all its init arguments copied on all hubs. Since it can also run on and work with non-Pybricks boards, a consistent class would be nice too.