diff --git a/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.html b/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.html new file mode 120000 index 00000000..ef6e18a2 --- /dev/null +++ b/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.html @@ -0,0 +1 @@ +../../../../../../web/heart_rate_monitor/heart_rate_monitor.html \ No newline at end of file diff --git a/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.js b/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.js new file mode 120000 index 00000000..1d1dc8b7 --- /dev/null +++ b/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.js @@ -0,0 +1 @@ +../../../../../../web/heart_rate_monitor/heart_rate_monitor.js \ No newline at end of file diff --git a/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.py b/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.py new file mode 120000 index 00000000..cb0f4594 --- /dev/null +++ b/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.py @@ -0,0 +1 @@ +../../../../../../web/heart_rate_monitor/heart_rate_monitor.py \ No newline at end of file diff --git a/web/heart_rate_monitor/heart_rate_monitor.py b/web/heart_rate_monitor/heart_rate_monitor.py index 7affb60f..4a843b46 100644 --- a/web/heart_rate_monitor/heart_rate_monitor.py +++ b/web/heart_rate_monitor/heart_rate_monitor.py @@ -53,7 +53,9 @@ class HeartRateMonitor: ) # Notify subscribers of the current value as soon as they subscribe - @self.heart_rate_service.heart_rate_measurement_characteristic.on('subscription') + @self.heart_rate_service.heart_rate_measurement_characteristic.on( + 'subscription' + ) def on_subscription(_, notify_enabled, indicate_enabled): if notify_enabled or indicate_enabled: self.notify_heart_rate() @@ -63,6 +65,15 @@ class HeartRateMonitor: self.device.advertising_data = bytes( AdvertisingData( [ + ( + AdvertisingData.FLAGS, + bytes( + [ + AdvertisingData.LE_GENERAL_DISCOVERABLE_MODE_FLAG + | AdvertisingData.BR_EDR_NOT_SUPPORTED_FLAG + ] + ), + ), ( AdvertisingData.COMPLETE_LOCAL_NAME, bytes('Bumble Heart', 'utf-8'),