A SkillsCast for this session is not available.
After this workshop you will have learned a solid understanding of the status and availability of the Web Bluetooth APIs, of key Bluetooth LE concepts and terminology and have gained experience of creating web applications which use the Web Bluetooth API to allow discovery of and communication with suitable Bluetooth LE devices from a browser.
CONSTRAINTS and PREREQUISITES
Test Equipment: The first 25 attendees will be provided by the Bluetooth SIG with a BBC micro:bit which you can keep!
ATTENDEE LAPTOP REQUIREMENTS
Equipment: You'll need a laptop running Windows or Linux or a Macbook. Whatever kind of laptop it is, it must include a properly configured Bluetooth adapter and software otherwise no matter how hard you try, your Web Bluetooth code will not work!
Software: Your laptop needs the following installed on it:
- A local web server with support for SSL (self-signed certificate is OK)
- A text editor
- Google Chrome
For LINUX Users: You will need BlueZ and should be running a recent version. We tested on BlueZ 5.50. You will also need to enable experimental features in Chrome by going to this address in Chrome.
For WINDOWS Users:
You will also need a small software component known as a polyfill installed as a Chrome plugin to give Chrome on Windows the level of Web Bluetooth support that we need.
You can use any web server but if you don't already have a favourite, local-web-server.js is recommended. It uses nodejs so you'll need to install it if you don't already have it and decide to use this web server. Instructions follow:
Get and install node js from here if you don't already have it.
Install and set up local-web-server (short version)
- mkdir web_projects
- npm install -g local-web-server
- cd web_projects
- ws --https --verbose
The directoryweb_projects is just an example name. Call it whatever you like. This is where you'll edit your html, css, JS etc and launchingws from that directory will make them available from this URL.
For WINDOWS Users:
You will need to install the Web Bluetooth polyfill for Chrome. Follow the instructions here to install the required polyfill.
YOU MAY ALSO LIKE:
- Controlling Bluetooth Mesh Networks with Web Applications (SkillsCast recorded in July 2019)
- Testing Stories (Online Meetup on 10th June 2021)
- Dev Faster with Contract Driven API Development (SkillsCast recorded in April 2021)
- Dependency injection from zero to hero with Koin (SkillsCast recorded in October 2019)
2 hr Tutorial: Web Bluetooth Coding Workshop
Martin Woolley works for the Bluetooth SIG, the technical standards body for Bluetooth. He’s an industry veteran with over 30 years’ experience working with computers large, small and ….. getting smaller. He still has a Sinclair ZX81 somewhere.
He was a part of the BBC micro:bit team and designed the micro:bit’s Bluetooth profile.