You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void main() {
print('Available ports:');
var i = 0;
for (final name in SerialPort.availablePorts) {
final sp = SerialPort(name);
print('${++i}) $name');
print('\tDescription: ${sp.description}');
print('\tManufacturer: ${sp.manufacturer}');
print('\tSerial Number: ${sp.serialNumber}');
print('\tProduct ID: 0x${sp.productId!.toRadixString(16)}');
print('\tVendor ID: 0x${sp.vendorId!.toRadixString(16)}');
sp.dispose();
}
} SerialPort.availablePorts throws the error
Unhandled exception: Invalid argument(s): Failed to load dynamic library 'serialport.dll': error code 126
in windows machine..
I also tried in linux there it shows --- Unhandled exception: Invalid argument(s): Failed to load dynamic library 'serialport.so': error code 126
...Any solutions..
The text was updated successfully, but these errors were encountered:
import 'package:libserialport/libserialport.dart';
// ignore_for_file: avoid_print
void main() {
print('Available ports:');
var i = 0;
for (final name in SerialPort.availablePorts) {
final sp = SerialPort(name);
print('${++i}) $name');
print('\tDescription: ${sp.description}');
print('\tManufacturer: ${sp.manufacturer}');
print('\tSerial Number: ${sp.serialNumber}');
print('\tProduct ID: 0x${sp.productId!.toRadixString(16)}');
print('\tVendor ID: 0x${sp.vendorId!.toRadixString(16)}');
sp.dispose();
}
}
SerialPort.availablePorts throws the error
Unhandled exception: Invalid argument(s): Failed to load dynamic library 'serialport.dll': error code 126
in windows machine..
I also tried in linux there it shows --- Unhandled exception: Invalid argument(s): Failed to load dynamic library 'serialport.so': error code 126
...Any solutions..
The text was updated successfully, but these errors were encountered: