i need to run a python script from an arduino yun sketch.
the python file resides here:
/mnt/sd/arduino/www/python/python.py
... and this is the arduino sketch:
#include <Console.h>
#include <Process.h>
void setup() {
Bridge.begin();
Console.begin();
pinMode(A0, INPUT);
}
void loop() {
if(analogRead(A0) > 200){
Process p;
Console.println("Limit....");
p.runShellCommand("python /mnt/sd/arduino/www/python/python.py");
delay(1000);
}
Console.println(analogRead(A0));
delay(100);
}
if i run the python file from Winscp window, it works fine. I think there is a problem with the path...
thanks in advance...