From 6d69f04fe54f1beb2d0c74824a1ba0ccdd37a787 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 23 May 2023 13:36:25 -0500 Subject: [PATCH] docs/cityhub: add ble.broadcast A workaround has been implemented in the firmware so this is available now. --- doc/main/hubs/cityhub.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/main/hubs/cityhub.rst b/doc/main/hubs/cityhub.rst index ed41975..3451bbc 100644 --- a/doc/main/hubs/cityhub.rst +++ b/doc/main/hubs/cityhub.rst @@ -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 @@ -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 ******************************