Skip to content

Changed device name (or other Payload of the Advertisement PDU field) on requestLEScan #771

Open
@baretd

Description

@baretd

Describe the bug
During a scan, if a device name changes, only the old name is propagated.
This behavior does not exist with nrfConnect or other native applications.

To Reproduce
Steps to reproduce the behavior:

  1. With two smartphone, launch scan using requestLEScan
  2. Write a new name (generic-access/device-name) from your BLE server device
  3. On both smarphones, the device appears but still displays the old name

Expected behavior
If you repeat these steps with nrfConnect, the divice appears with its new name.

Plugin version:

  • @capacitor-community/bluetooth-le: [e.g. 7.1.1]

Resolution track
On Android : android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/DeviceList.kt#addDevice, if the divice is already in the list then it should be updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidImpacts the Android platformbugSomething isn't workingiOSImpacts the iOS platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions