This provide a simple adapter which make is easy to create WebBluetooth application.
You only have to set filter and service/characteristic identifiers.
You can use these demo on your local environment.
To use SSL on localhost with WebBluetoothAPI:
- Generate key with
openssl genrsa -out localhost.key 2048
- Generate cert with
openssl req -new -x509 -key localhost.key -out localhost.cert -days 3650 -subj /CN=localhost
- Put them in a directory
/keys/
- Start server with
node server.js
- Now you can visit
localhost:3000
with SSL from your browser.
To update and build js file:
npm install
- Update/Create js file in each samples
npm run build:js:(candle|dotti|bb8)
to build js file
npm run build:all
can build all file at thesame time- You can also use Watchify
npm rum watch:js:(candle|dotti|bb8)
This examples is with reference to these demos:
https://github.com/WebBluetoothCG/demos