flutter_libserialport icon indicating copy to clipboard operation
flutter_libserialport copied to clipboard

Multiple instances of serial port reader in call stack

Open ftauro99 opened this issue 1 year ago • 0 comments

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.

image

ftauro99 avatar Jul 12 '24 14:07 ftauro99