Skip to content

library module adafruit_ble_broadcastnet error in line 171 #4496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ray-5050 opened this issue Mar 26, 2021 · 1 comment
Closed

library module adafruit_ble_broadcastnet error in line 171 #4496

ray-5050 opened this issue Mar 26, 2021 · 1 comment
Labels

Comments

@ray-5050
Copy link

Firmware
Tried both the 6.1.1 stable and the below with same results on the feather nrf52840
Adafruit CircuitPython 6.2.0-beta.4 on 2021-03-18; Adafruit Feather nRF52840 Express with nRF52840

tried 2 versions on the feather nrf52840
adafruit-circuitpython-bundle-6.x-mpy-20210303
adafruit-circuitpython-bundle-6.x-mpy-20210326

The code.py is the example ble_broadcastnet_battery_level.py
I'm getting the below error in the library adafruit_ble_broadcastnet
line 171   self.data_dict[255].data.move_to_end(3, last=False)
When I type that command in, I do get a attribute for move_to_end

code.py output:
This is BroadcastNet sensor: d707ed9caad1
<AdafruitSensorMeasurement temperature=24.0 battery_voltage=4112 >
Traceback (most recent call last):
  File "code.py", line 25, in <module>
  File "adafruit_ble_broadcastnet.py", line 37, in broadcast
  File "adafruit_ble/__init__.py", line 166, in start_advertising
  File "adafruit_ble_broadcastnet.py", line 171, in __bytes__
AttributeError: 'OrderedDict' object has no attribute 'move_to_end'

Thanks for your help
@ray-5050 ray-5050 added the bug label Mar 26, 2021
@ladyada
Copy link
Member

ladyada commented Mar 26, 2021

this is duplicate of adafruit/Adafruit_CircuitPython_BLE_BroadcastNet#18

@ladyada ladyada closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants