Skip to content

Broadcast fails in CircuitPython because move_to_end() is not implemented #18

Closed
@aww

Description

@aww

OrderedDict.move_to_end() is used during .broadcast() but this method of OrderedDIct is not implemented in CircuitPython.

code.py output:
This is BroadcastNet Feather Sense sensor: e1ea5705e4b6
Traceback (most recent call last):
  File "code.py", line 30, in <module>
  File "adafruit_ble_broadcastnet.py", line 54, in broadcast
  File "adafruit_ble/__init__.py", line 183, in start_advertising
  File "adafruit_ble_broadcastnet.py", line 188, in __bytes__
AttributeError: 'OrderedDict' object has no attribute 'move_to_end'

Code done running.

Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Feather Bluefruit Sense with nRF52840```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions