Skip to content

AlbyST/WebBLE_API_PoC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web BLE API PoC

This repo holds a very basic PoC of the Web BLE APIs.

Since the APIs work only in trusted environments you need to create your own certificates before running the example code.

Create TSL certificates with:

openssl req -nodes -new -x509 -keyout server.key -out server.cert

then allow chrome to accept self-signed certificates from localhost with:

chrome://flags/#allow-insecure-localhost

Other Chrome flags to enable to run the code are:

  • enable-experimental-web-platform-features to use the getDevices() and watchAdvertisements() APIs
  • enable-web-bluetooth-new-permissions-backend to enable first-time only explicit user permission to connect with a particular device. Subsequent requests to connect to the same device will not require the explicit user permission.

BLE Node Simulation App

You can use a BLE Device Simulator App to simulate a BLE device for experimenting:

https://github.com/WebBluetoothCG/ble-test-peripheral-android

Considerations

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published