Skip to content

Close serial port after file send #2

@Rowbotronics

Description

@Rowbotronics

Currently we open the serial port on server start and leave it open. It should only open the port as needed, and close it when it is no longer needed.

If the port is not open when a send is attempted, the following error is thrown:
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions