upnped
A Dart library for discovering and controlling UPnP devices.
Features
This package partially implements UPnP 2.0 architecture and supports the following UPnP server features:
- UPnP discovery
- Device and Service information
- Non-standard vendor extensions
- Service control
- Event monitoring
Installation
Install from pub with:
flutter pub add upnped
or by adding upnped as a dependency in pubspec.yaml
:
dependencies:
upnped: <latest_version>
Quickstart
import 'package:upnped/upnped.dart';
Future<void> main() async {
final server = Server.getInstance();
server.devices.listen((Device event) {
print('Discovered a device: ${event});
});
await server.listen(Options());
await server.search();
await server.stop();
}
Documentation
Check out the documentation or examples for more information.
Contributing
Something missing that you need? Open an issue or submit a pull request.