styfle / magicblue

Control Magic Blue Bulbs using Web Bluetooth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

magicblue Smart Bulb Library

Control Magic Blue smart bulb using Web Bluetooth.

-> Learn more about the bulb protocol in my blog post

Usage example:

import { MagicBlueBulb } from 'magicblue';

let bulb = new MagicBlueBulb();
bulb.connect().then(() => {
    // Set color to Red
    bulb.setColor(255, 0, 0);
});

About

Control Magic Blue Bulbs using Web Bluetooth


Languages

Language:TypeScript 100.0%