fliclib 1.0.0-dev.2 copy "fliclib: ^1.0.0-dev.2" to clipboard
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.

example/fliclib_example.dart

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()}');
  });
}
3
likes
35
pub points
0%
popularity

Publisher

verified publisherindiealexh.com

A library to use Flic 2 bluetooth Smart Button with dart and flutter. Built to use the Flic 2 TCP Protocol Specification.

Repository (GitHub)
View/report issues

License

CC-BY-4.0 (LICENSE)

More

Packages that depend on fliclib