Skip to content

Commit

Permalink
docs/cityhub: add ble.broadcast
Browse files Browse the repository at this point in the history
A workaround has been implemented in the firmware so this is available
now.
  • Loading branch information
dlech committed May 23, 2023
1 parent 00ded2e commit 6d69f04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/main/hubs/cityhub.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ City Hub

.. rubric:: Using connectionless Bluetooth messaging

``ble.broadcast()`` does not work on ``CityHub`` due to a bug in the
Bluetooth chip firmware.
.. automethod:: pybricks.hubs::CityHub.ble.broadcast

.. automethod:: pybricks.hubs::CityHub.ble.observe

Expand Down Expand Up @@ -85,6 +84,12 @@ Creating light animations
Bluetooth examples
------------------

Broadcasting data to other hubs
*******************************

.. literalinclude::
../../../examples/pup/hub_common/build/ble_broadcast_cityhub.py

Observing data from other hubs
******************************

Expand Down

0 comments on commit 6d69f04

Please sign in to comment.