ESP32 Technical Tutorials: BLE and C++

  Переглядів 34,725

Kolban Technical Tutorials

Kolban Technical Tutorials

6 років тому

A preview of ESP32 C++ classes for working with Bluetooth BLE. Discussion on this video can be found here:
esp32.com/viewtopic.php?f=13&...

КОМЕНТАРІ: 42
@iot_enthusiast
@iot_enthusiast 2 роки тому
love the way you explain, otherwise difficult to comprehend concepts, so easily ! simply superb!
@plopprocks
@plopprocks 6 років тому
Amazing work. I'm absolutely thrilled for things to come. Thanks for all the amazing work for the community!
@kartiksikka3866
@kartiksikka3866 6 років тому
Thank You for such nice BLE classes !!!
@UnaiGZ
@UnaiGZ Рік тому
Thank you for your great efforts Neil!!
@MubinIcyer
@MubinIcyer 6 років тому
OMG! I was searching a couple of days how I can use BT functionality of ESP32. The provided examples are a little bit complex for a BT-beginner like me. But this very helpful. BIG THAAANK YOUUU :)
@aamirayub8564
@aamirayub8564 Рік тому
Thanks a lot for this tutorial!
@markingle8980
@markingle8980 6 років тому
Thanks Kolban! There are plenty of code examples for the ESP to run as a client. But there is hardly any for server. Thank you so much! I think your esp32 PDF was recently updated too so I'll take a look at it as well and get back to my ESP projects
@ThomasHaberkorn
@ThomasHaberkorn 6 років тому
Great work! Does such a high-level framework also exist to use Bluetooth classic on the ESP32?
@arturwiebe7482
@arturwiebe7482 6 років тому
Thx for this tutorial. Definitely a step in the right direction as most programmers are not interested in all these BLE internals. Still, I think that we need Classic BT support because even with your nice C++ classes the other side, Android in my case, needs to be written. And it is also a mess. Actually the same problem: overloading people with technical concepts. All I want to do is to send and receive data! C'mon!
@miketony2069
@miketony2069 6 років тому
Very well explained
@robertkominka7537
@robertkominka7537 5 років тому
Thanks Neil for great tutorial ! It is straight to the point. Perhaps I overlooked possibility of specifying Manufacturer data in advertising. Is it possible in these BLE classes ? cheers !
@pcbreflux
@pcbreflux 6 років тому
Hi, thank you for this tutorial!
@pcbreflux
@pcbreflux 6 років тому
Did you plan to implement notifications and also callbacks on descriptors (this enable notifications)? For reading sensors I use this a lot and also working on some kind of cheap ESP32 BLE logging multimeter. So the BLE client can decide by enabling notifications when to be flooded by sensor data or on the other hand by disabling notification keep the BLE server quite.
@kolbantechnicaltutorials4715
@kolbantechnicaltutorials4715 6 років тому
You betcha my friend. Callbacks for a peer read request and write request are already in place. When a read request arrives at the ESP32, the default is just to return the current value of the ESP32 managed characteristic but we have the option of providing a callback that is invoked to provide a new value ... and that would be the value returned. Correspondingly, we have the notion of a write callback. When the peer writes a new value to the ESP32, a write callback is invoked to that our logic can be signaled that the data has changed and we can perform some action. We also have outbound (from ESP32) inform() and notify() methods. These allow the ESP32 to indicate to the peer that the value of an ESP32 characteristic has changed and the peer might then choose to "do something" with that knowledge.
@ankitrana5855
@ankitrana5855 5 років тому
Hello Sir can you explain(with practical example) or provide a source to understand ALL about GATT more specifically GATT Declarations, Descriptors(how and where they are used) and in detail about UUID?
@praveenchaubey7018
@praveenchaubey7018 4 роки тому
In a nutshell way i am asking, can we take sound sensor data to ESP32 and than connect a peripheral Speaker with Bluetooth connection and stream live Audio?
@chauvoluuhuong7485
@chauvoluuhuong7485 4 роки тому
Hi, can we awake esp32 up from sleeping by bluetooth event ? because in active mode esp32 consume a lot of power
@KalimanMer
@KalimanMer 6 років тому
Hello I am testing this project and I flashed it on ESP32 chip. When a I search for btl services, I found the Generic Attribute and Generic Access services but NOT my customized Service (then service is not advertised according the debug messages). Do you have one idea why?
@arihanttechnosolutionsats4478
@arihanttechnosolutionsats4478 6 років тому
I can separately use WiFi codes and BLE codes, both are perfectly working, but when we try to combine these two codes, it says memory full error. How can we rectify that ??? Kindly help me to solve this issue.
@elpanoo1
@elpanoo1 4 роки тому
Is it possible to copy paste the code to the Arduino IDE and upload it to a board?
@iiilllii140
@iiilllii140 Рік тому
In the onWrite callback, you said we could turn on a led. Would you do that with a freertos queue?
@MrPerll
@MrPerll 6 років тому
Sir, great tutorial. By the way, your book too!! How can I do to use WiFi and Ble toguether without overcomming the sketch size???
@axa.axa.
@axa.axa. 4 роки тому
I've seen it possible. One thing to do is remap you memory map to get rid of OTA. But it's a challenge as they share the same radio
@YousufAlam-jx4qd
@YousufAlam-jx4qd 3 місяці тому
Hello sir, can I used deep sleep features in ble connectable device?
@davidschroder2845
@davidschroder2845 6 років тому
Hello, is it still worth it to use the esp 8266? My goal is to make a wireless sensor node and i have been following your very nice video on setting up eclipse in a vm, install the toolchain and all that.
@kolbantechnicaltutorials4715
@kolbantechnicaltutorials4715 6 років тому
Howdy David. Its a good question. I can offer my opinion ... While the ESP32 and ESP8266 can obviously be used by hobbyists, that is not the primary market for these products (opinion). Instead, they are designed to used by OEMs who will build high volume products of which the ESP32 and ESP8266 are components. When one builds high-volume anything, a small difference in price of a component scales up when you but in large quantities. While the ESP32 has much more power and function as compared to the ESP8266, that currently comes at a literal price cost. You should currently expect to pay more for a unit of ESP32 than for an unit of ESP8266. When designing a product for high volume production, you will then want to choose the "cheapest" component that will do the job. If what one needs for a given product is withing the specification of an ESP8266 then one could argue that you would be wasting monies using a higher specified product (the ESP32). The flip side, of course, is that if your product requires capacity or a feature found in the ESP32 but not present in the ESP8266, the story becomes moot. If you are a hobbyist and employed .... and not contemplating high volume production, I personally would recommend working with the ESP32. The capabilities of that device are "so much better" while the price differential appears to be about the cost of a large cup of premium coffee.
@davidschroder2845
@davidschroder2845 6 років тому
Hello Mr. Kolban, first of all let me tell you that your videos are amazing. Thank you for your reply to my inquiry. I am working on a project which needs a wireless sensor node. So far i am developing on a STM32 based mcu and my research for alternatives lead me to your videos. I am still undecided if i should use the arduino adaptation or not. Andreas Spiess who is also on youtube and you should team up and make the perfect esp powerduo to be honest.. Thank you for providing such quality.
@animeshsachan7001
@animeshsachan7001 6 років тому
is there any tutorial for scanning other bluetooth beacons with ESP32 like bluetooth sniffing with ESP32?
@kolban1
@kolban1 6 років тому
There is a sample BLE scanner found here ... github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLETests/SampleScan.cpp
@eddiegeerts6107
@eddiegeerts6107 6 років тому
is there a way to make it more secure so not everyone can connect or is this some thing you need to program your self?
@kolbantechnicaltutorials4715
@kolbantechnicaltutorials4715 6 років тому
Hi Eddie. BLE does indeed provide a wealth of security possibilities. This is the start of the project and we'll add more security features as requested. There will be a few options that immediately come to mind. The first is that we have the notion of "passkeys". Imagine, for example, that when you connect to the ESP32, the ESP32 presents a pass-key to the user. This would require I/O. The same pass-key would be presented on your "phone" and you would be asked to confirm that they are the same. Another option would be to initially allow connection from anyone but, once you have "married" your ESP32 and "phone", the ESP32 would maintain a white list of only those devices allowed to connect. There might be a reset button on the ESP32. These are only two choices and I'll be there are more. Have a look around at how other devices are secured with Bluetooth and what ever they do, we can expose at a high level with the ESP32.
@sportybj1360
@sportybj1360 6 років тому
Very helpful tutorial. Could you let me know where to find the project source code?
@kolbantechnicaltutorials4715
@kolbantechnicaltutorials4715 6 років тому
No problems ... see the following ... esp32.com/viewtopic.php?f=13&t=2330
@weerobot
@weerobot 5 років тому
Why have they made bluetooth so complicated???
@lut5ch3r
@lut5ch3r 6 років тому
I can't manage to include the BLE.h file. Worthless for me I guess...
@blockchaine2917
@blockchaine2917 5 років тому
5
@ReevansElectro
@ReevansElectro 6 років тому
Your static graphics reflect a lazy preparation and adds nothing to your presentation.
ESP32 Technical Tutorials: BLE Client
6:51
Kolban Technical Tutorials
Переглядів 25 тис.
Understanding Bluetooth Low Energy (BLE) - Theoretical Overview
17:40
How to analyze logs without queries with Dynatrace
12:19
Getting Started with the ESP32 Development Board  |  Programming an ESP32 in C/C++
15:23
Getting Started with ESP32 Bluetooth Low Energy (BLE) on Arduino IDE
7:57
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Переглядів 847 тис.
#174 Bluetooth BLE on ESP32 works! Tutorial for Arduino IDE
9:50
Andreas Spiess
Переглядів 94 тис.
Boston Dynamics NEW Humanoid Robot SHOCKS The ENTIRE Industry! (Atlas 2.0)
10:56
Why It Was Almost Impossible to Make the Blue LED
33:45
Veritasium
Переглядів 19 млн
ESP32 Technical Tutorials: BLE Notifications
15:35
Kolban Technical Tutorials
Переглядів 57 тис.