flutter_libserialport
flutter_libserialport copied to clipboard
Multiple instances of serial port reader in call stack
Hello all. I created a service within my stacked mvvm architecture called UsbService which is used to manage the connection to multiple COM ports from my Windows device.
I noticed that when running the service, for each com port I have connected, an additional instance of serialportreader is added to my call stack.
Is there any way to get around this? I am not sure if this adds unnecessary overhead to my application. I want to keep the ports open so they can only be accessed by my application while connected, but if I can reduce the amount of processing in my call stack (when not being used) that would be preferrable.