open method
Open the ZWave serial port on portPath
where portPath
defaults to defaultPortPath
if unspecified.
Implementation
Future<void> open(String portPath) async {
if (notificationPort != null) {
_logger.warning('already open');
throw ZwException('already open');
}
notificationPort = ReceivePort();
_notificationSubscription = notificationPort!.listen(process);
await openPort(portPath);
_logger.config('opened $portPath');
// Initialize the connection
driver.sendNak();
// TODO Consider sending FUNC_ID_SERIAL_API_SOFT_RESET and waiting 1 1/2 sec
}