Using Web BLE to detect and get GATT information
Channel: Sayanee Basu
Date: 2019-10-18

#bluetooth #gatt #arduino
Web BLE on the Chrome browser can be used to interact with a BLE device by connecting to it and then reading the GATT service and characteristics values.

⏰ TIMESTAMPS
0:00 Intro
2:24 JavaScript code to detect any BLE device on the browser
6:20 Arduino code on the nRF52 board to start advertising itself
9:13 Publish GATT characteristic UV Index every 1 second on the BLE device
12:05 JavaScript code to display the changing GATT characteristic values

‣ Some links below are affiliate. I receive a small commission at no extra cost to you.

📻 PRODUCTS MENTIONED
Adafruit Feather nRF52 Bluefruit LE https://amzn.to/39WpHw8

🎩 DEMO FILES
Detecting BLE devices on the browser: https://hutscape.com/tutorials/web-ble-detect
Display GATT services and characteristics: https://hutscape.com/tutorials/web-ble-gatt

🔗 LINKS SHOWN
Web Bluetooth Specs https://webbluetoothcg.github.io/web-bluetooth/
Can I Use browser compatibility https://caniuse.com/#feat=mdn-api_bluetooth
Google Chrome developers BLE https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web
Chrome samples https://googlechrome.github.io/samples/web-bluetooth/index.html
Adafruit nRF52 board https://www.adafruit.com/product/3406
Adafruit nRF52 Arduino https://github.com/adafruit/Adafruit_nRF52_Arduino
Sample code https://github.com/adafruit/Adafruit_nRF52_Arduino/tree/master/libraries/Bluefruit52Lib/examples
BLE basic terminologies https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2018/05/30/ble_basics_masters-i4n9
Bluetooth GATT services https://www.bluetooth.com/specifications/gatt/services/
Bluetooth GATT service Environmental sensing https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.environmental_sensing.xml
Bluetooth GATT characteristics https://www.bluetooth.com/specifications/gatt/characteristics/
Bluetooth UV Index GATT Characteristics https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.uv_index.xml

🔌 TOOLS USED
https://hutscape.com/tools