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