ESP32 bluetooth
ESP32 bluetooth
Hi !
I already runned several bluetooth examples, but all of them involve the Esp32 being added by the PC.
i want to do the opposite : the Esp32 connecting to a PC (or a phone) - with or without a pincode.
Can you help me doing this, or tell me whre i could find a code doing that ? I've been googling for weeks, and did not find the way to do it...
I already runned several bluetooth examples, but all of them involve the Esp32 being added by the PC.
i want to do the opposite : the Esp32 connecting to a PC (or a phone) - with or without a pincode.
Can you help me doing this, or tell me whre i could find a code doing that ? I've been googling for weeks, and did not find the way to do it...
Re: ESP32 bluetooth
Thanks a lot, exactly what I needed! Any advice on what to do to make this run in arduino/esp32 ?
Re: ESP32 bluetooth
Thanks a lot. Will look at it more in details.
Re: ESP32 bluetooth
BLEPin:38:14: error: 'class BLESecurity' has no member named 'setStaticPIN'
pSecurity->setStaticPIN(123456);
pSecurity->setStaticPIN(123456);
Re: ESP32 bluetooth
I installed the latest ESP32 library and Neil Kolban's BLE library, but i still have the error message :
BLEPin:38:14: error: 'class BLESecurity' has no member named 'setStaticPIN'
pSecurity->setStaticPIN(123456);
^
BLEPin:38:14: error: 'class BLESecurity' has no member named 'setStaticPIN'
pSecurity->setStaticPIN(123456);
^
Re: ESP32 bluetooth
Looks like arduino library has not been updated with this feature. You can copy/paste files from this library:
https://github.com/nkolban/esp32-snippe ... curity.cpp
https://github.com/nkolban/esp32-snippe ... Security.h
https://github.com/nkolban/esp32-snippe ... curity.cpp
https://github.com/nkolban/esp32-snippe ... Security.h
Re: ESP32 bluetooth
I could run the code but it is not exactly what I wanted to do.
What I would like to do is a soft that connects successively to all the bluetooth devices (which would trigger a message "ESP32 wants to connect with your PC" message on my PC for example). Any idea how to do this ?
What I would like to do is a soft that connects successively to all the bluetooth devices (which would trigger a message "ESP32 wants to connect with your PC" message on my PC for example). Any idea how to do this ?
Re: ESP32 bluetooth
Then you need ble client on esp32 and peer device, like PC or smartphone, needs to advertise itself. Without that how esp32 could find it?
Who is online
Users browsing this forum: No registered users and 71 guests