, , . COM- , .
Now, if you ask how you can just open the COM port and read and write without anything, it is much more complicated. The letter is simple - I would simply disengage from the level of communication and spank along with a mock class, and then I have nowhere to write. Reading is much more difficult, since you have to write some kind of simulator to present the data in the same way as your peripheral device.
IMO, you should still do this abstraction so that in any case you can write unit tests and software integration.
source
share