init method
override
Initializes the connection to the device.
Implementation
@override
Future<bool> init() async {
devices = await getFirmwareDevices();
collection.server.messages.listen(_sendToSerial);
var result = true;
for (final device in devices) {
logger.debug("Initializing device: ${device.port}");
result &= await device.init();
if (!device.isReady) continue;
final subscription = device.messages.listen(collection.server.sendWrapper);
_subscriptions.add(subscription);
}
return result;
}