0.0.13 • Published 3 years ago
@narwhallab/mufin v0.0.13
Mufin
Bluetooth based IoT connection library
Using mufin
Requirements
- Rust and Cargo
- Nodejs and Npm
Methods
- Install mufin with
npm install @narwhallab/mufin
- use
@narwhallab/mufin
in nodejs
import mufin from '@narwhallab/mufin'
mufin.scanBluetooth().then(() => {
mufin.connectBluetooth("<btaddr>").then(async () => {
await mufin.writeBluetooth("<btaddr>", "My Message");
await mufin.disconnectBluetooth("<btaddr>")
})
})
TODO
- Reading from bluetooth