Having trouble connecting to your printer with OctoPrint?
This may be a solution/workaround to your OctoPrint connection woes.
Minimal OctoPrint plugin that performs a double open on the serial port to potentially work around issues with Malyan printers. Put file into ~/.octoprint/plugins and restart the server. Based on https://github.com/foosel/OctoPrint/issues/2271#issuecomment-352662485