I'm writing a python program in openWRT for arduino (dragino + mega adk), first my code is OK in linux console, but when I use it in Arduino, with runShellCommand, it didn't work. I realized the error is in the while loop(doing some tests), so please can you help me? Where is the error?
It seems to be in brigde.py(to connect arduino with linux)..... but what can I do?
some of the code...
while fr==0:
respuesta = some wsdl request
try:
codigo= respuesta.somethingIGet
print codigo
except:
codigo = '0N0E'
print codigo
time.sleep(1) #pause 1 second
I kill the process using the PID, to get out the while loop....