Skip to content

Please replace BLE_iBeacon with a more fleshed-out example. #7360

Closed
@Human

Description

@Human

Related area

iBeacon example

Hardware specification

ESP32

Is your feature request related to a problem?

Forum and github searches reveal that many people have problems getting ESP32 boards running https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/examples/BLE_iBeacon/BLE_iBeacon.ino to be detected by strict iBeacon scanners. Even when a scanner does detect an ESP32 iBeacon, many fields are missing. I came across a discussion here that links to reworked example code here. This worked out of the box for me, whereas BLE_iBeacon.ino only worked partially on some scanners and not at all on others. (EDITED: updated pastebin link to a the full solution)

Describe the solution you'd like

Either replace the legacy BLE_iBeacon.ino with 31337Ghost's reference code, or incorporate its changes into the legacy BLE_iBeacon.ino.

Describe alternatives you've considered

I searched github and forums, and it seems as if most people end up having to modify BLE_iBeacon.ino to achieve basic functions. I don't think there's really an alternative, other than everyone performing the same forum searches and performing the same workarounds.

Additional context

I recommend that devs try the legacy BLE_iBeacon code, then switch to the suggested new reference code, and compare the functionality in various scanners.

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: BT&WifiBT & Wifi related issuesStatus: Community help neededIssue need help from any member from the Community.Type: ExampleIssue is related to specific example.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions