Using a RasPi (or similar) with CircuitPython on Bristlemouth

Great question! Not yet!

When we or anyone else gets to it, it should look something like this.

  • In bm_serial.py, we need to add a subscribe function that builds a subscription packet and sends it over uart.
  • The serial_bridge dev kit app would need to handle that subscription packet and make the analogous bm_sub call there.
  • When the dev kit app receives a published message to which it has subscribed, it needs to pass that over bm_serial to the RPi.

Usage on the RPi would then look like this:

  • Call bm.subscribe which takes as arguments a topic string and a callback function
  • Write the callback function to handle the messages that arrive.

Not on my short list, but PRs are welcome!

1 Like