google / google/bumble

Controller object has no attribute advertising times [extended advertisement branch]

Open
#469 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
555
Forks
138
Avg merge
3d 15h
Merged PRs (30d)
9

Description

When running the bumble `controller.py` of branch `gbg/controller-extended-advertising` I get the following error when connecting to my Zephyr virtual bluetooth device:

```
ERROR:bumble.transport.common:!!! Exception in on_packet: 'Controller' object has no attribute 'advertising_times'
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\bumble\transport\common.py", line 152, in feed_data
self.sink.on_packet(bytes(self.packet))
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\bumble\controller.py", line 575, in on_packet
self.on_hci_packet(HCI_Packet.from_bytes(packet))
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\bumble\controller.py", line 585, in on_hci_packet
self.on_hci_command_packet(packet)
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\bumble\controller.py", line 596, in on_hci_command_packet
result = handler(command)
^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\bumble\controller.py", line 1364, in on_hci_le_set_advertising_enable_command
self.schedule_advertiser(self.legacy_advertiser, time.time())
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\bumble\controller.py", line 1026, in schedule_advertiser
heapq.heappush(self.advertising_times, (when, advertiser))
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Controller' object has no attribute 'advertising_times'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.