watchAdvertisements API
This is a simple test to check if watchAdvertisements API functions as expected.
Step 1
Press the button to load the code to the Espruino IDE.
From there, flash any Bluetooth capable Espruino device.
View
source.
Step 2
Press the button to start watching advertisements. It'll take about 10 seconds.
Step 3
Unplug the Espruino Pixl.js from power source and click the button. It'll take 10 seconds.
Status:
Web Bluetooth is not supported by this browser.
Bluetooth requires a secure context (HTTPS). For development purposes it
does support HTTP, but only the on the loopback adapter (i.e. "localhost").
Web Bluetooth is supported by this browser but this device does not have
Bluetooth capabilities.