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.

Activity

lbernstone

lbernstone commented on Oct 15, 2022

@lbernstone
Contributor

Make a pull request with the example code that you would like to see. The BLE library was originally a community submission, and it continues to be supported largely by the community rather than Espressif.
Also, the code at https://github.com/h2zero/NimBLE-Arduino/tree/release/1.4/examples might have some bits that would be useful in your example.

Human

Human commented on Oct 16, 2022

@Human
ContributorAuthor

@31337Ghost I don't want to steal credit for your work, but I also don't want to give you things to do :) Would you prefer to submit a PR for this, or should I do it?

added
Type: ExampleIssue is related to specific example.
and removed on Oct 21, 2022
VojtechBartoska

VojtechBartoska commented on Oct 21, 2022

@VojtechBartoska
Contributor

@PilnyTomas Can you please check this example and propose some possible solutions? Thank you.

PilnyTomas

PilnyTomas commented on Nov 9, 2022

@PilnyTomas
Contributor

@Human Open Source software is not only about transparency and free access, it is also about community contribution. If you have a clear idea about the example and you are able to do that we will happily review your Pull Request and add it to this repository.

added and removed
Status: Needs investigationWe need to do some research before taking next steps on this issue
on Nov 9, 2022
Human

Human commented on Nov 13, 2022

@Human
ContributorAuthor

@PilnyTomas Ok. I gave the original author time and opportunity to respond, so I will prepare a PR with his work.

1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Please replace BLE_iBeacon with a more fleshed-out example. · Issue #7360 · espressif/arduino-esp32