fliclib 1.0.0-dev.2 fliclib: ^1.0.0-dev.2 copied to clipboard
A library to use Flic 2 bluetooth Smart Button with dart and flutter. Built to use the Flic 2 TCP Protocol Specification.
import 'package:fliclib/fliclib.dart';
void main() {
run();
}
void run() async {
var client = FlicClient();
await client.connect();
var info = await client.getInfo();
print(info.toString());
info.bdAddrOfVerifiedButtons.forEach((element) {
var channel = ButtonConnectionChannel.Normal(element);
client.addConnectionChannel(channel);
print('Add channel for ${channel.bdaddr.toString()}');
});
}