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.

Fliclib #

A dart version of the Shortcut Labs Flic button protocol

Please see the official Flic developer docs for more info

Device support #

Currently supported #

Planned support #

  • Android via Flutter
  • iOS via Flutter

Usage #

You will need the FlicSDK running and have already connected the Flic buttons you wish to use

A simple usage example:

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()}');
  });
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

License #

Dart Fliclib by Alexander Haslam is licensed under CC BY 4.0

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