ESP32 Technical Tutorials: BLE Client

  Переглядів 25,943

Kolban Technical Tutorials

Kolban Technical Tutorials

6 років тому

In this technical tutorial we look at the ability for an ESP32 using C++ classes to be a BLE Client to a remote BLE server.
For links and discussion on this topic, please see the following forum post:
esp32.com/viewtopic.php?f=13&...

КОМЕНТАРІ: 34
@cdawson875
@cdawson875 6 років тому
Neil, your work with the ESP32 is amazing, thank you so much for sharing.
@rsyoung01
@rsyoung01 5 років тому
Thanks so much for posting!
@pcbreflux
@pcbreflux 6 років тому
Thanks. Excellent as always. Big thumbs up.
@rzajac
@rzajac 6 років тому
Thank you for your very informative videos. Would you make one that explains the esp8266 / esp32 memory map? Especially how the binaries we are sending are laid out and how the OTA works. Thanks!
@eddiegeerts6107
@eddiegeerts6107 6 років тому
again awesom
@judlup
@judlup 5 років тому
You're the best :)
@GfastGao
@GfastGao 6 років тому
Hi Kolban, howday! It's near half year that you don't make new vids about ESP32 here. I'm eager to know if everything OK out there. You know, the most interesting / helpful tutorial in my ESP32 world is from you (and from pcbreflux too). Cheers Gfast2
@qzorn4440
@qzorn4440 2 роки тому
BLE is so simple that other videos just connect to a smartphone ok... 🙏 now this video gives some great background for creative thinking and troubleshooting...😉 thanks...:)
@CousKkouss
@CousKkouss 5 років тому
Hi Neil, I'm making a studies project implying BLE communications between 2 ESP32, and during my researches, your name and your work came up many times. Right now i quite understand how the communication works between 2 ESP32, but i'd like to use the received signal and i don't know how to do it. For exemple, Using your BLE_notify and BLE_client programs, i'd like to make the LED on the ESP client blink when receiving a notification. Your help would be great. Great video btw it clarifies a lot !
@ftk8644
@ftk8644 6 років тому
may i know how read value send from the server to my esp32 client?
@ThomasHaberkorn
@ThomasHaberkorn 6 років тому
Great work! One question: Is BLE on the ESP32 downward compatible with Bluetooth 4.0, i.e. will a Bluetooth 4.0 device receive data the same way (service, characteristic, value)? Thanks!
@vishnunaikdhanavath
@vishnunaikdhanavath 6 років тому
Dear sir, How can I build this program in eclipse? I followed your tutorial: Building a C++ Application, I am getting error as BLEDevice.h no such file exists. Is there any other procedure build and run this program and other programs which exist at esp32-snippets/cpp_utils/tests/BLETests in Eclipse eniveronment? Thank you.
@thisusernameismine10
@thisusernameismine10 6 років тому
Clean and concise as ever. One question, what does your variable prefix 'p' denote as you use in the likes of 'pAdvertisedDevice()'? (I guess not Public or Private)
@kolban1
@kolban1 6 років тому
Howdy Paul ... p for "pointer" ... its a "habit" I picked up that object which are pointers to thing I prefix their names with "p". eg. int myInt; int* pMyInt;
@yugeshkumart3793
@yugeshkumart3793 3 роки тому
Can we connect more than one HM-10 bluetooth module with esp32 to get some sensor values through that bluetooth module
@muratakjol1437
@muratakjol1437 4 роки тому
Dear Neil Kolban, I tried to disconnect from server from client, but after reconnection memory leakage occurs, so what I did was I modified BleClient example in arduino by adding disconnect option after some time, can you help how to solve this problem?
@achuthman
@achuthman 6 років тому
is threading possible in eps32, I wanted both http server and bluetooth server to be available on my esp32.
@krunalpatel6356
@krunalpatel6356 6 років тому
Great Video ! What version of ESP-IDF you are using ? It doesn't seem to be working well on latest release.
@kolban1
@kolban1 6 років тому
Unfortunately there have been some breaking changes in the ESP-IDF ... we are waiting on some fixes ... see: github.com/nkolban/esp32-snippets/issues/82
@0805bryan
@0805bryan 5 років тому
how to disconnected bluetooth after two esp32 connected?
@ericbommer2280
@ericbommer2280 6 років тому
Hi Kolban, great information and I really enjoy the details you go to. I am currently experimenting with a version of Arduino code (BLE_uart.ino)that says was based off of you C++ work. Using the nRF application I can connect, see the services, and exchange data with the ESP32 without issue. If I try to connect using my android or PC Bluetooth service, my ESP32 name is populated in the discovered items and it pairs, but on my phone it wont connect and on my PC it gives me an "Authenication error". I am assuming there is a service that is not needed by nRF but is required by all other devices. I want to run one of the many Bluetooth terminal programs, but I'm unable since I can not connect. Thanks for any advice.
@kolbantechnicaltutorials4715
@kolbantechnicaltutorials4715 6 років тому
Eric, What you are likely going to want to do is start tuning into the Github repository found here: github.com/nkolban/esp32-snippets From there you can read issues or create your own new issues so that we can track resolution and see if we can't find the problems.
@MrBurakko
@MrBurakko 2 роки тому
Great tutorial. I have a problem. I want to connect to a car that is steering BLE. Using uRF i can see 4 servises. But ESP32 only see one that i can connect to. How to connect to another UUID? If you want to help, enter your e-mail and I will send you a more detailed description with photo. THX
@0805bryan
@0805bryan 5 років тому
How to send more than 20 bytes in each connection
@CKeletronica
@CKeletronica 6 років тому
Hi Kolban, whitch is the name of APP you show in your phone in this video, I have Iphone but the ESP32 don´t show in my Bluetooth. Thank you.
@kolban1
@kolban1 6 років тому
The app I am using is an Android app called nRF Connect. It should be able to be found with a google. Sadly, I don't own any Apple products.
@CKeletronica
@CKeletronica 6 років тому
Thank you Kolban, I go try with androide mobile
@PartheshBulbule
@PartheshBulbule 6 років тому
Sir I want to build this code into eclipse is it possible? I tried to build but there is no make file exist in cpp_utils. As reference I am using your video : ESP32 Technical Tutorial: Building with Eclipse.
@kiwicannagrow4055
@kiwicannagrow4055 3 роки тому
cpp_utils can be found on github github.com/nkolban/esp32-snippets/tree/master/cpp_utils
@siowlimchow7755
@siowlimchow7755 6 років тому
Hi Kolban, I am interested in contributing to your C++ work. If you need an extra hand, please, do feel free to let me know.
@vishnunaikdhanavath
@vishnunaikdhanavath 6 років тому
superb explanation sir. Where can get the source code of this project?
@kolbantechnicaltutorials4715
@kolbantechnicaltutorials4715 6 років тому
Howdy ... all the sources can be found here ... github.com/nkolban/esp32-snippets/tree/master/cpp_utils
@PartheshBulbule
@PartheshBulbule 6 років тому
Sir I want to build this code into eclipse is it possible? I tried to build but there is no make file exist in cpp_utils.
@0805bryan
@0805bryan 5 років тому
I used ESP32 client source code how to spilt [newValue]string to send >>>// If we are connected to a peer BLE Server, update the characteristic each time we are reached // with the current time since boot. if (connected) { String newValue = (",1234567890qwertyuioopp"); Serial.println("Setting new characteristic value to \"" + newValue + "\""); // Set the characteristic's value to be the array of bytes that is actually a string. pRemoteCharacteristic->writeValue(newValue.c_str(), newValue.length());
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Переглядів 1,6 млн
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 3,4 млн
"Поховали поруч": у Луцьку попрощались із ДВОМА Героями 🕯🥀 #герої #втрати
00:15
Телеканал Конкурент TV - новини Луцька та Волині
Переглядів 142 тис.