BLE with ESP32 tutorial part 1: the Server

BLE with ESP32 tutorial part 1: the Server

MoThunderz

2 года назад

123,815 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@firdoshdiakus4841
@firdoshdiakus4841 - 02.12.2023 16:41

Hi great tutorial how do I go about using this for asset tracking?

Ответить
@adwait_natu
@adwait_natu - 04.12.2023 11:16

Thank you so much! I've followed along your video and everything works good except the last part where 2901 descriptor is added. I can see only one descriptor i.e. 2902 but value is showing as Incorrect data length(16bit expected) : (0x) 41 --- So many bytes ---65, then actual message "A very interesting variable"

Ответить
@guyprovost
@guyprovost - 13.12.2023 16:30

I dont think that the Delay function works with "nanoseconds" but rather "milliseconds". The precision of a board like a ESP32 can not be that precise. Heck, even a register in a CPU isn,t that precise.

Ответить
@Galeazzi2006
@Galeazzi2006 - 17.12.2023 03:27

Thank you!
Awesome video!

Ответить
@rydinorwin
@rydinorwin - 23.12.2023 04:04

Absolutely awesome! You know delay(1) - this is milli seconds, so delay(1000) is 12 second! I am sure other people have mentioned this. So very clear, fantastic - thank you!

Ответить
@YousufAlam-jx4qd
@YousufAlam-jx4qd - 02.01.2024 19:09

Sir, please can u tell me can I use deep sleep features in this code, if yes then how?

Ответить
@raffialidina5580
@raffialidina5580 - 04.01.2024 06:54

Cool project. do you have an example where BLE Tx a link and smart phone gets a push notification to go or not to go to the link. thanks

Ответить
@TheSergifier
@TheSergifier - 06.01.2024 10:55

A wonderful workshop, thank you! Extremely useful from the beginning to the end

Ответить
@baconsledge
@baconsledge - 09.01.2024 20:00

Have you considered walking a user through reading data from a General TS04 BLE Multimeter (cheap) with an ESP-32? There are many of these types of devices that only have phone apps but many of us would like to use a Windows/Linux PC to capture data. This would truly be a practical application.

Ответить
@doug6503
@doug6503 - 25.01.2024 22:05

I get an error code in Ringbuffer in src/FreeRTOS. .?

Ответить
@doug6503
@doug6503 - 27.01.2024 21:43

My code will not download nor compile! I get a lot of errors , not sure how to post them. But the serial counsel has ‘ringbuf_type_t’ has not been declared in Scr/FreeRTOS.h file in ESP32 BLE arduino directory.

Ответить
@leisergeist
@leisergeist - 31.01.2024 04:28

I rarely comment but had to say… fantastic job making a great clear but concise tutorial! Thanks a bunch for your effort

Ответить
@gaborungvari784
@gaborungvari784 - 03.02.2024 18:51

Thx a lot for the effort to create the video! Great content!

Ответить
@AshutoshJangirOfficial
@AshutoshJangirOfficial - 04.02.2024 16:22

Hii
I am learning this part but when I upload thw code it gives me an error

61 | Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT);
| ^~~~~~~~~~~~~~
Multiple libraries were found for "BLEDevice.h"
Used: C:\Users\ashut\OneDrive\Documents\Arduino\libraries\ESP32_BLE_Arduino
Not used: C:\Users\ashut\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\BLE
exit status 1

can you guide me?

Ответить
@davidkempton2894
@davidkempton2894 - 24.02.2024 15:07

This video was just what I was looking for. So many of the other ones dont show you how to set up a server. Thanks VERY much!

Ответить
@quadepchai
@quadepchai - 02.03.2024 11:11

Hello, I have a small problem in my application, I want to create an application that when the BLE device emits a signal and the phone catches that signal, my application will go to a screen or the layout contains certain information, do you think it is feasible?

Ответить
@jmmi9780
@jmmi9780 - 11.03.2024 07:20

Thank you for the tutorial, that was very helpful.

BTW, I have a problem, I've tried with two possible apps from the market, the one you mentioned on your tutorial and other called BLEScanner. Both of them allowed me sending just 4 bytes from the app to the ESP32 BLE Server. I wonder if it is possible to send a bigger package of data from the app to the Server. Could you help me please?

Thanks again and regards.

Ответить
@michealmorrow1481
@michealmorrow1481 - 25.03.2024 18:45

3 milliseconds, of course.

Ответить
@MattijsVandebroek
@MattijsVandebroek - 17.04.2024 22:42

Is it also possible to send a file from SPIFFS using ble?

Ответить
@melvin-rh2gr
@melvin-rh2gr - 19.04.2024 15:18

@mothunderz: any idea on how many devices can be connected to esp32 through BLE?

Ответить
@SahanPanditharathne
@SahanPanditharathne - 30.04.2024 13:21

How can I use BLE to sync data between my ESP32 and the mobile app

Ответить
@pgnt
@pgnt - 04.05.2024 17:59

Great video, but this lib crashes on PlatformIO:
.pio/libdeps/esp32doit-devkit-v1/ESP32 BLE Arduino/src/FreeRTOS.h:61:28: error: 'ringbuf_type_t' has not been declared

Has anyone ever experienced this? Can help?

Ответить
@adAbsurdum07
@adAbsurdum07 - 15.05.2024 17:00

Do you know how tro send more than just 20 bytes over a characteristic?

Ответить
@dominiclee6682
@dominiclee6682 - 30.05.2024 11:43

I've delved into numerous videos on the topic but this video makes me understand the most about the BLE with ESP32. Thank you very much.
Moreover, I encountered interesting twist using nRF Connect on my Android mobile. The app would occasionally hang after connecting to my ESP32 and clicking the continuous fetch of characteristics value. However, following the adjustment from 3ns delay to 1s delay, the app operates smoothly without further hanging. Is it because too frequent updates would overwhelm the app?

Ответить
@varunshah2384
@varunshah2384 - 04.06.2024 13:34

which esp 32 board to use??
As I am getting an error using wroom esp 32 da module

Ответить
@fitzgeraldmistral97
@fitzgeraldmistral97 - 07.06.2024 14:45

The 'delay' is in milliseconds, not nanoseconds.

Ответить
@mychannelmarco
@mychannelmarco - 14.06.2024 11:24

Amazing tutorial! Thank you very much

Ответить
@butchalline
@butchalline - 25.06.2024 18:30

Using IDE 2.3.2, sketch BLE_server, ESP dev module
I get error ...Compilation error: 'init' is not a member of 'BLEDevice'
Could not find ESP32 BLE Arduino, so I used🤕 these includes:
BLEDevice.h
BLEServer.h
BLEUtils.h
BLE2902.h

Ответить
@dicklambert1503
@dicklambert1503 - 26.07.2024 00:03

Do you know any reference about how to interpret the values in the packets?

Ответить
@benarcher372
@benarcher372 - 08.08.2024 12:47

Super clear and, for me, with the perfect level of detail. Thanks!

Ответить
@retsalb3517
@retsalb3517 - 15.09.2024 15:05

hey man, thank you for the tutorial. I have a question, can you still connect this code into the MIT app inventor to make a new app? thank you so much!

Ответить
@koolway
@koolway - 24.09.2024 12:27

For some time now, I wanted to implement a BLE sensor for an ergometer that already displays speed, power, cadence, etc... so it can be sent to my watch.
You got me going, just ordered the ESP32 to start implementing it. Thank you for the quality content you provided!!!

Ответить
@ronaldmarkundag346
@ronaldmarkundag346 - 26.09.2024 18:31

Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT); please help me whats wrong with this

Ответить
@octasafitri-z9n
@octasafitri-z9n - 06.11.2024 15:55

I just stumbled upon this piece about BLE, and it really opened my eyes. The insights shared are thought-provoking and genuinely refreshing. If you're curious about ble, this is a must-read in GAO RFID Inc —there's a wealth of information here that could reshape your understanding.

Ответить
@TraceyGrace-c6c
@TraceyGrace-c6c - 07.11.2024 12:15

I just stumbled upon this piece about BLE, and it really opened my eyes. The insights shared are thought-provoking and genuinely refreshing. If you're curious about BLE
, this is a must-read in GAO RFID Inc —there's a wealth of information here that could reshape your understanding.

Ответить
@NishatTasnim-w3c
@NishatTasnim-w3c - 11.11.2024 16:11

I just stumbled upon this piece about BLE with ESP32 Tutorial and it really opened my eyes. The insights shared are thought-provoking and genuinely refreshing. If you're curious about BLE with ESP32 Tutorial this is a must-read in GAO RFID Inc—there's a wealth of information here that could reshape your understanding.

Ответить
@FranciscoMartinezSorando
@FranciscoMartinezSorando - 26.11.2024 21:33

I have a error, why?
error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
41 | std::string pChar2_value_stdstr = pChar -> getValue();
| ~~~~~~~~~~~~~~~~~^~

exit status 1

Compilation error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested

Ответить
@farhanibnmustafa9833
@farhanibnmustafa9833 - 29.11.2024 09:41

I just stumbled upon this piece about using Bluetooth Low Energy (BLE) with the ESP32, and it really opened my eyes. The insights shared are thought-provoking and genuinely refreshing. If you're curious about BLE implementation and its applications, this is a must-read in GAO RFID Inc —there's a wealth of information here that could reshape your understanding.

Ответить
@Zydigo
@Zydigo - 05.12.2024 04:40

I was having trouble with the server making a connection. I was using an alternative c++ compiler. You have instantiated your server callbacks correctly. However, the onConnected and onDisconnect methods should be overriding the base class methods. This typically requires the override keyword in C++, though Arduino sketches often omit this. I made the following corrections and the code:
class MyServerCallbacks : public BLEServerCallbacks {
void onConnect(BLEServer* pServer) override {
deviceConnected = true;
};

void onDisconnect(BLEServer* pServer) override {
deviceConnected = false;
}
};
This resolved my connection problem.
Thanks for the great tutorial.

Ответить
@heartfsteel
@heartfsteel - 22.12.2024 13:39

Hello! I watched the whole series for the BLE since I want to learn how it can be used. But once I try to compile the master code, I get the following error:
___________________________________________________________________________________
Multiple libraries were found for "BLEDevice.h"
Used: C:\Users\LENOVO\Documents\Arduino\libraries\ESP32_BLE_Arduino
Not used: C:\Users\LENOVO\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE_backup
exit status 1
___________________________________________________________________________________
I tried commenting out the standard BLE library in order to force the compiler to use the intended library that you show in the video, however it did not work out either.. Any suggestions?

Ответить
@stevexiao1488
@stevexiao1488 - 29.12.2024 22:21

How to connect ESP32 to computer wirelessly? Bluetooth or WiFi?

Ответить
@stevexiao1488
@stevexiao1488 - 30.12.2024 07:24

Truied to run BLE_server.ino under Examples of ESP32_BLE_Arduino library, however, received compiling error message:
libraries\ESP32_BLE_Arduino\src/FreeRTOS.h:61:35: error: 'ringbuf_type_t' has not been declared
61 | Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT);
| ^~~~~~~~~~~~~~

Ответить
@anil2812
@anil2812 - 08.01.2025 16:58

Excellent video. Made a few things which were Greek earlier, very much understandable

Ответить
@codm-n4v
@codm-n4v - 24.01.2025 11:09

when i run the code in the github project,it shows me this error (In file included from C:\Users\BEN ALI\Documents\Arduino\libraries\ESP32_BLE_Arduino\src/BLEAdvertising.h:15,
from C:\Users\BEN ALI\Documents\Arduino\libraries\ESP32_BLE_Arduino\src/BLEServer.h:19,
from C:\Users\BEN ALI\Documents\Arduino\libraries\ESP32_BLE_Arduino\src/BLEDevice.h:18,
from C:\Users\BENALI~1\AppData\Local\Temp\arduino_modified_sketch_673111\sketch_jan24c.ino:6:
C:\Users\BEN ALI\Documents\Arduino\libraries\ESP32_BLE_Arduino\src/FreeRTOS.h:61:35: error: 'ringbuf_type_t' has not been declared
61 | Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT);
| ^~~~~~~~~~~~~~
Multiple libraries were found for "BLEDevice.h"
Used: C:\Users\BEN ALI\Documents\Arduino\libraries\ESP32_BLE_Arduino
Not used: C:\Users\BEN ALI\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\BLE
exit status 1
Error compiling for board ESP32-WROOM-DA Module.
) im using the 1.0.1 version library

update:
i found the solution,i solved the problem with deleteing the folder(C:\Users\BEN ALI\Documents\Arduino\libraries\ESP32_BLE_Arduino) and making sure that the esp32 board library by expressif in installed,and i dont see the error anymore
note:thx for the helpfull totorial

Ответить
@YashKashyapSanskarBhartiVikasN
@YashKashyapSanskarBhartiVikasN - 31.03.2025 16:34

nice n cool info thanx

Ответить
@SCSBairsoft
@SCSBairsoft - 06.04.2025 23:52

Sorry for the necro post, but just found your tutorial, trying to understand it and I am getting a fatal error: esp_bt.h: No such file or directory

Ответить
@lordsigurdthorolf1202
@lordsigurdthorolf1202 - 02.05.2025 20:54

On my UNO R4 with WiFi built in I keep getting error Bluetooth is not enabled! Please run `make menuconfig` to and enable it but NO ONE IS SHOWING VIDEOS ON HOW TO ENABLE IT!!! I am over 73 years young and the text I read Googling it make no sense. HOW AND WHERE DO YOU RUN 'MAKE MENUCONFIG' FROM?

Ответить
@alexf7248
@alexf7248 - 04.05.2025 07:43

Im getting error , init is not a member of 'BLEDevice'

Ответить
@Everydaymedia_1
@Everydaymedia_1 - 01.06.2025 11:12

Cant find the library!

Ответить
@ShubhamBanwadikarB22EE063
@ShubhamBanwadikarB22EE063 - 06.06.2025 07:40

Heyy i am not able to find the ESP32 BLE arduino library by Dariusz Krempa

Ответить