Arduino-esp32: Does Bluetooth works with this IDE?

Created on 16 Jan 2017  路  16Comments  路  Source: espressif/arduino-esp32

Hello,
does bluetooth works on this platform?

Most helpful comment

An example of this would be much appreciated

All 16 comments

As far as I know (I am waiting for it, also), BT is not yet implemented within esp32-arduino but since BT is already implemented in esp-idf you can call the esp-idf functions directly "from arduino".

...you can call the esp-idf functions directly "from arduino"

Can anyone give an Arduino sketch showing that? Something like the ESP32 picking up advertisements from peripheral nodes?

...you can call the esp-idf functions directly "from arduino"

I'm really looking forward for this capability...
How do you know that the esp-idf commands can be called from the arduino IDE?

Because I am doing that, too (not for BT but NV Memory storage, SD Card and things).
The IDF libs are packed with arduino-esp32 because it uses them, too. Like many things in the arduino world, arduino-esp32 is partially "just" an abstraction layer to a more basic set of libraries.
That does not mean that it isn't a great work anyway ;)

Just take a look to the examples within the IDF git. In most cases you can do the same in Arduino as it is done there.

me also wating bluetooth capabilities

An example of this would be much appreciated

While this is in development, being able to use the IDF from the Arduino IDE for currently not supported functions is quite important and seemingly easy from plenty of other posts but there isn't an example of how to do it and I've tried with every not found error you could imagine. How would you do this?

this is horrible example and will never be in the Arduino section, nor you should expect it to work in the future, but it's what you ask. This is how you integrate IDF BT example into Arduino

Alright, found this before and remember it not working but I'll try again and see if I can replace parts with the scanning functionality that I need. I'll analyze it. Thank you! Good luck

I made the changes to the gatt client example in the IDF and set it up in the IDE and it compiles but when it runs there is this error "E (4930) BT: bta_dm_co_ble_load_local_keys: func not ported". Do I have to just wait until BLE is ready?

Maybe ask this question in IDF?

Thanks for the ESP32_BLE_ADV_Arduino.ino sketch, I gave it a try and with a BLE Scanner app on my phone can see the "ESP-BLE-HELLO" advertisements. Great!

I'd really like to do it the other way around though and have the ESP32 picking up advertisements from peripheral nodes. Can anyone help with an example sketch to do that?

Example and simple class based loosely on the sketch above is not in the main repository. The above sketch no longer works. Closing this issue now ;)

Thank you very much! Looking forward to scanning examples and central work!

Hi Guys,
I am really looking forward for the BT implementation !
I appreciate your effort and look forward to use it on ESP32 board :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DrewHoyt picture DrewHoyt  路  4Comments

docloulou picture docloulou  路  3Comments

merlinschumacher picture merlinschumacher  路  4Comments

Darkhub picture Darkhub  路  3Comments

zuqualla picture zuqualla  路  4Comments