upnped 1.1.0 copy "upnped: ^1.1.0" to clipboard
upnped: ^1.1.0 copied to clipboard

A Dart library for discovering and controlling UPnP devices.

upnped #

A Dart library for discovering and controlling UPnP devices.

codecov License: MIT

Installation #

Install from pub with:

flutter pub add upnped

or by adding upnped as a dependency in pubspec.yaml:

dependencies:
  upnped: <latest_version>

Usage #

Discover devices #

final server = Server.getInstance();

server.devices.listen((UPnPDevice event) {
    print('Discovered a device: ${event}');
});

await server.listen(Options{
    locale: 'en',
});
await server.search();

Invoke actions #

final control = ControlPoint.getInstance();
UPnPDevice device = getDevice();
ServiceAction action = selectAction(device);
Map<String, dynamic> actionArgs = collectArgs();

action.invoke(control, actionArgs);us

Monitor UPnP Events #

UPnPObserver.networkEvents.listen(print);
2
likes
0
points
25
downloads

Publisher

verified publishersamueljhuff.com

Weekly Downloads

A Dart library for discovering and controlling UPnP devices.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

device_info_plus, equatable, flutter, http, platform, rxdart, sprintf, xml

More

Packages that depend on upnped