Переглядів 26,933
#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 amzn.to/39WpHw8
🎩 DEMO FILES
Detecting BLE devices on the browser: hutscape.com/tutorials/web-bl...
Display GATT services and characteristics: hutscape.com/tutorials/web-bl...
🔗 LINKS SHOWN
Web Bluetooth Specs webbluetoothcg.github.io/web-...
Can I Use browser compatibility caniuse.com/#feat=mdn-api_blu...
Google Chrome developers BLE developers.google.com/web/upd...
Chrome samples googlechrome.github.io/sample...
Adafruit nRF52 board www.adafruit.com/product/3406
Adafruit nRF52 Arduino github.com/adafruit/Adafruit_...
Sample code github.com/adafruit/Adafruit_...
BLE basic terminologies www.silabs.com/community/wire...
Bluetooth GATT services www.bluetooth.com/specificati...
Bluetooth GATT service Environmental sensing www.bluetooth.com/wp-content/...
Bluetooth GATT characteristics www.bluetooth.com/specificati...
Bluetooth UV Index GATT Characteristics www.bluetooth.com/wp-content/...
🔌 TOOLS USED
hutscape.com/tools