-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Is there Bluetooth example for arduino? #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As far as I know, BT is not implemented in arduino yet |
You can use everything available through IDF. I see lots of work still being done on the BT stack and I see no point into investing lots of time into something that is not finalized and instead improve and integrate things that are done. p.s. Please try search issue before submitting a duplicate issue. I'm closing this as there are at least 2 others available |
Well, it's good that we at least get an update on this, I was wondering about this for 2 months already :) |
and in those 2 months everything about BT in ESP32 changed :) imagine how that would have worked |
Please can someone explain how to implement IDF from the IDE? It doesn't compile plain example files from the IDF |
We now have a sample bluetooth library that works 👍 |
@birkir Does it support ECDH or any other secure BLE connection? |
I tested SimpleBLE and I have error: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) What could be? |
I do not see an error |
I do not see and ble.begin("ESP32 SimpleBLE"); //crash |
I have the same problem... |
Still waiting on a line ble.begin("ESP32 SimpleBLE"); |
I see the same behaviour: |
So it's hanging on the ble.begin line as in it just freezes there? |
fixed in the latest code (from yesterday) |
could you share any working example .. |
Yes, am also wondering if there is some example code - I'd just like to exchange data over a BLE serial link with a phone. From what I can see the library can set the name but nothing else so far - is that correct? |
I think you guys misunderstand "I'd just like to exchange data over a BLE serial" with something simple :) This in particular is called SPP and is not even implemented on a base level yet. |
Ah I see! Yes that makes sense. So for time being perhaps best solution for me is to just use an external bluetooth module with UART I guess. Do you think a BTSerial.begin() will be implemented one day for the Arduino ESP32? Or perhaps is a maybe/maybe not thing? |
It will surely be implemented once it's implemented on a lower level in IDF. |
Hi me-no-dev, since you seem to be the most knowledgeable on Bluetooth through the Arduino core, is there any Bluetooth communication that has been implemented at all yet through Arduino? If not, how can I get started with the effort, I'm interested in making it work. |
@eraguzin Please take a look at SimpleBLE: https://github.com/espressif/arduino-esp32/tree/master/libraries/SimpleBLE/src If you are interested in working on BLE support, that's great! I will open a new issue for discussion of approaches which can be taken. |
I had tried out SimpleBLE, but it looks like it only advertises as of now right? I don't see any ability to read or write data through BT. How do I get caught up on the effort so far? Is there any documentation on how everything is organized? I'm not familiar with the innards of the ESP32. Thanks! |
That is correct. To read or write data you would need to work with GATT protocol either as server (peripheral) or client (central). |
So far no one has manage to make it work in arduino?? Would be suitable to put some IDF Like code into arduino and compile it? |
Just in case someone end up on this issue after a google search, some example of scan can be found here: |
edit trrs trinkey
* Enable LwIP hook required for Husarnet component * Enable all LwIP hooks
Hi, I have ESP WROOM 32 (support Wifi&BLE). I have been looking for an Arduino example using BLE.
I have one for Eclipse which seems too much complicated for me.
Any help is appreciated.
James
The text was updated successfully, but these errors were encountered: