Connect to ESP32 and send/receive data directly in the browser via Web Bluetooth API
Prerequisites:
1) Use Chrome / Edge browser (version 70+); 2) Computer Bluetooth is enabled;
3) ESP32 is flashed and running Blue_Server_test.ino.
If opening this HTML file directly (file://) does not work, please serve it via a local server (see the bottom of this page).
🔗 Connection
Disconnected
Target Device Name
ESP32_BT_BLE
Service UUID
dfcd0001-36e1-4688-b7f5-ea07361b26a8
Characteristic UUID
dfcd000a-36e1-4688-b7f5-ea07361b26a8
Characteristic Properties
READ / WRITE / NOTIFY
📤 Send Data to ESP32
Sent: 0
📜 Real-time Log
All events (connect / send / receive) will be shown here in real time
Local server method (optional): Open a terminal in the folder containing this HTML file, run
python -m http.server 8000, then open
http://localhost:8000/Blue_Server_test_web.html in the browser.
Some browsers do not allow Web Bluetooth on file:// URLs; in that case use this method.