2 Replies Latest reply on Feb 5, 2015 5:57 AM by X_Y

    Running python script from Arduino sketch - not working?

    X_Y

      I'm trying to call a python script from Arduino sketch in Edison, which is not working.

       

      arduino sketch:

       

      void setup(){

      }

      void loop(){

          system("python ~/test.py");

          delay(2000);

      }

       

      python script:

       

      f=open("/home/root/testLog.txt","a+")

      f.write("hello\n")

      f.close()

       

      Seems like no file is created, nor is it possible to modify the content of any file.

      Wondering what's the problem with this?