How to use obd.query with local autopi command

Hi
My command is like below
autopi obd.query Front_Driver_Door_Unlock mode=01 pid=33 header=7DF baudrate=500000 protocol=6 verify=false force=true
it works in cli. but I tried to it with subprocess function in python code like
subprocess.call([‘autopi’,‘obd.query’,‘Front_Driver_Door_Unlock mode=01 pid=33 header=7DF baudrate=500000 oriticol=6 verify=dalse force=true’])
An error like below was occured
Error: Command may not be supported - add “force=True” to run it anyway
How should I correct the command and argument to execute the command?
Always, thank you for your kind support!

I belive this is the syntax for python code

response = __salt__['obd.query']('Front_Driver_Door_Unlock mode=01 pid=33 header=7DF baudrate=500000 protocol=6 verify=false force=true')

This topic was automatically closed 33 days after the last reply. New replies are no longer allowed.