Skip to content

Using this project with the Arduino environment #8

@troisiemetype

Description

@troisiemetype

Hello,

I'm currently trying to use your project with the Arduino environment. It compiles flawlessly, but the device is not advertised, it does not appear when scanning with my phone.
I believe it have to do with the settings config you expose in the readme :

  • bluetooth enable (I believe it's default in Arduino)
  • bluetooth controller mode BR/EDR only (there is no option for that in Arduino IDE, are there available functions in code to set that ?)
  • HCI mode = VHCI (same thing)
  • bluetooth host menu : controller only
    I believe this is similar to Why can't use both classic bluetooth and ble? #3, and maybe Enhance compatability #4 that comes from it ?

Hope you can help.

Edit : I've dived further into your code, to try to find some hints. It appears that it gets stuck in the while loop of the start_bt() function, waiting for the controller to change its status.
Trying to understand what was the matter, I've compared your code with another bluetooth app that I know, this one.
Although the wrapper functions are a bit different, the bluetooth init is exactly the same, starting with the exact same nvs_flash_init(), then the default config loading, etc.
The A2DP program also test for last connection and adds a 1-second delay between nvs init and bl init, but I don't think that has an impact. I've tried to add both in your code, it changes nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions