adderlink 1.0.1 copy "adderlink: ^1.0.1" to clipboard
adderlink: ^1.0.1 copied to clipboard

A dart library for controlling Adderlink devices via network

example/adderlink_example.dart

import 'package:adderlink/adderlink.dart';

Future<void> main() async {
  var adderlink = Adderlink(ipAddress: '37.101.8.40');

  // Login with your username and password
  final l = await adderlink.login(username: '', password: '');
  print(l.toJson());

  // Get a list of all C-USB Extenders
  var cUsbList = await adderlink.getAllCUsb();

  // Print each extender's data to the console
  cUsbList.body?.forEach(print);

  // Logout so that the token does not stay active and clog up the auth buffer
  await adderlink.logout();
}
0
likes
150
points
129
downloads

Publisher

unverified uploader

Weekly Downloads

A dart library for controlling Adderlink devices via network

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http, xml2json

More

Packages that depend on adderlink