Skip to content

About

Simple web API to control bluetoothctl on unix systems.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bluetooth Web API

This tools hosts a web API that is used to control bluetooth devices. It requires bluetoothctl to be installed and used.

Unfinished notice

Since bluetooth on linux devices is often janky and this tool is really simple it never fully worked unfortunately. I am not planning on finishing up the tool as there are probably other working tools already that fulfill a similar purpose.

Usage

Install NPM dependencies (express & bluetoothctl)

cd bluewebcontrol
npm install

Create a config.json file that contains a target element and a port

{
    "target": "<bluetooth mac address>",
    "port": "3000"
}

Start the Express server

node app.js

Features as of now

GET /info

Returns the latest information on the target bluetooth device

GET /scan/[true|false]

Turns scanning on or off

GET /connect

Connects to the target and turns scanning off to avoid interference

GET /disconnect

Disconnect the target

About

Simple web API to control bluetoothctl on unix systems.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages