Giter Site home page Giter Site logo

simple-webbluetooth's Introduction

simple-webbluetooth

Description

This provide a simple adapter which make is easy to create WebBluetooth application.
You only have to set filter and service/characteristic identifiers.

Live demo

How to use

You can use these demo on your local environment.

To use SSL on localhost with WebBluetoothAPI:

  1. Generate key with openssl genrsa -out localhost.key 2048
  2. Generate cert with openssl req -new -x509 -key localhost.key -out localhost.cert -days 3650 -subj /CN=localhost
  3. Put them in a directory /keys/
  4. Start server with node server.js
  5. Now you can visit localhost:3000 with SSL from your browser.

To update and build js file:

  1. npm install
  2. Update/Create js file in each samples
  3. npm run build:js:(candle|dotti|bb8) to build js file
    npm run build:all can build all file at thesame time
  4. You can also use Watchify npm rum watch:js:(candle|dotti|bb8)

Reference

Notice

This examples is with reference to these demos:
https://github.com/WebBluetoothCG/demos

Analytics

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.