Skip to content

Discovered devices have MAC of 00:00:00:00:00:00 #89

@andrewdavidmackenzie

Description

@andrewdavidmackenzie

Describe the bug
Debugging an issue in my app I see that the BleDevices returned from available_ble_devices all have the same MAC of 00:00:00:00:00:00.

The name is usually correct.

But as the name is optional and the MAC always there, I was using it as the key in a Map, and thus all devices detected get mapped into the same entry and overwrite each otehr

To Reproduce
Steps to reproduce:

  1. run available_ble_devices
  2. inspect the MAC, it will be 0s
  3. wait for another device to get detected, will have the same

Expected behavior
The real MAC to be in BleDevice struct

Additional context
Debugger output, with two devices detected, both with MAC 0

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions