Missing imports were my mistake as I took some code from other script and didn't add the required imports.
it would be helpful to see the log file, so please attach it.
By the way on line 82
I am not tired of trying, but I'm completely out of ideas... And I feel a bit stupid making you to test so many things without success.
it would be helpful to see the log file, so please attach it.
By the way on line 82
log.debug("Start motor. Time is {}".format(datetime.now().strftime('%d %b %Y %H:%M:%S.%f')))you may want to change log.debug to log.info in order to get this printed on console as well.
I am not tired of trying, but I'm completely out of ideas... And I feel a bit stupid making you to test so many things without success.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs