I need to launch a python script without open manually OTII soft. For this :
I open command-line and type : otiicli -s example_basic_function_check.py’
And after that, I cannot write anything without quitting the server listening. So I can’t launch my script. This is the same reaction for ‘otiicli -s’
I also tried ‘otiicli example_basic_function_check.py’ but it doesn’t work without start server listening before.
I didn’t see the following link : Qoitech Documentation, it was very helpful. Thanks.
Just a comment in " Start otiicli from Script" chapter :
I imported subprocess : import subprocess
I pasted the following script part and changed my USERNAME and PASSWORD by mine:
cmd = f'otiicli --server --username={USERNAME} --password={PASSWORD}'
server = subprocess.Popen(cmd, shell=True)