Thanks for the response, the code I made simply run a script in Linino to start a BLE service. The Sketch runs ok and the service starts when I upload the code. But when I restart, the code do not run again until I upload it back again.
This is the code:
#include <Process.h>
void setup() {
Bridge.begin(); // Initialize the Bridge
Serial.begin(9600); // Initialize the Serial
// Wait until a Serial Monitor is connected.
while(!Serial);
Process p;
p.runShellCommand("/root/ble");
// do nothing until the process finishes, so you get the whole output:
while(p.running());
// Read command output. runShellCommand() should have passed "Signal: xx&":
while (p.available()) {
char c = p.read();
Serial.print(c);
}
delay(5000);
}
void loop() {
}
Thanks