1.1.0 • Published 4 months ago
@super-anki/anki-sdk v1.1.0
Anki SDK
This package allows to communicate with Anki cars via Bluetooth.
Installation
npm install @super-anki/anki-sdk
Usage
import { CarStore } from "@super-anki/anki-sdk"
const store = CarStore.getInstance()
store.onOnline((car) => {
// Car is available for connexion
})
store.onOffline((car) => {
// Connexion lost with the car (battery died, or power button pressed)
})