forked from SpinlockLabs/upnp.dart
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
/home/myUser/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --enable-asserts /home/myUser/Documents/git/network_tools/network_tools/example/test.dart
ERROR: FormatException: ERROR: Failed to parse device description. XmlParserException: Expected a single root element at 1:10 - http://192.168.31.237:9080
#0 DiscoveredClient.getDevice (package:upnp2/src/discovery.dart:376:7)
<asynchronous suspension>
#1 main.<anonymous closure> (file:///home/myUser/Documents/git/network_tools/network_tools/example/test.dart:9:19)
<asynchronous suspension>
Example code that I used
import 'package:upnp2/upnp.dart';
// NOTE: Open the example directory to see more elaborate examples
main() async {
final disc = DeviceDiscoverer();
await disc.start(ipv6: false);
disc.quickDiscoverClients().listen((client) async {
try {
final dev = await client.getDevice();
print('Found device: ${dev!.friendlyName}: ${dev.url}');
} catch (e, stack) {
print('ERROR: $e - ${client.location}');
print(stack);
}
});
}
Debugged the response in discovery.dart file line 372 and the value of the content variable is status=ok
This IP belongs to my LGwebOSTV
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working