Moreover, I can see the ESP32 announce itself over BT using the scan function of my laptop.
I even created an app on my Android phone (Samsung A5 2017 SM-A420F) running Android 8.0.0.
The app contains a single button and is targeted to ESP32 / Bluetooth.
However, when I start it a red dot is shown on the title bar and it saying
“wasn’t online yet”
Note that the phone is for sure able to work with BLE as I developed several apps using AppInventor2 and its BLE library, that works fine with the same ESP32 DEVKIT module, so the hardware is definitively capable to process BLE.
So, I’m stuck there, any chance to make it work?
Is it feasible to achieve a direct connection between the app running on Android and the ESP32 running Bylnk library ?
Yes…ish… Things keep changing with ESP32, so hard to say the current state of this topic…
And you probably need to use the Beta version of the App for better BT/BLE support.
As with anything curent with Blynk and BT/BLE, the App still needs connectivity to the Server (typically via WiFi/cell), and some Server linked Widgets do not work via the App link alone. thus with an ESP32 already having WiFi, it almost becomes a case of “Because it can…ish” rather than a need to use BLE
Finally, I understood that a BLE object has to be added to my Android App.
I did so and attempted to pair the phone to the ESP32, but no joy, as the connection fails anyway:
Waiting for connections...
[18]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.1 on ESP32
[8419] BLE connect
[19754] BLE disconnect
[19754] Disconnected
[73443] BLE connect
[84778] BLE disconnect
[84778] Disconnected
[105393] BLE connect
[116728] BLE disconnect
[116728] Disconnected
[142742] BLE connect
[154077] BLE disconnect
[154077] Disconnected
[220277] BLE connect
[231611] BLE disconnect
[231612] Disconnected
[261496] BLE connect
[272846] BLE disconnect
[272846] Disconnected
Many thanks to all provided suggestions; in the end I managed to workout my setup and now it works, more or less as expected.
It remains that a connection to the cloud is due, even when BLE is specified, at least the first time. So, Blynk could be not the ideal solution in order to manage an ESP32 via smartphone app using BLE or even wifi (not considering here the local server).
The server, indeed, not necessarily an Internet connection (as, in my understanding, the server could be local so to enable isolated plants).
In this picture is not clear to me why direct Bluetooth connection between a phone App and the physical node(s) was added at all.
Correct… although that standalone networking use of a Local Server is in of itself a bit more complex as now it’s hardware (typically a RPi) needs to integrate a WiFi Access Point and preferably be battery powered, since assuming you are in the middle of nowhere without any form of internet (GSM, Phone hotspot, etc.)… you probably have no AC outlet either
I don’t think it was added, so much as part of Blynk’s beginning, and soon surpassed by the new WiFi capable MCUs like ESP8266.
Personally, I think it is still being developed a bit due to the abundance of BT devices (and homage to Blynk’s beginnings?)… but with such limited range and reliability issues, it seems more like a niche side of Blynk.