I am developing with a Raspberry Pi 3 and an Arduino Due. These two are connected via a USB cable. On the Pi I am running PlatformIO version 3.4.0.
Via a terminal window I can get the Pi to flash the Due, no issues there. PlatformIO works as expected.
Now I trying to run the Pi headless and use Python scripts called through cron scheduling. Within these scripts I have system calls to execute functions (such as platformio run commands). I've tested the Python scripting and I do not have any syntax errors, however, the scripts fail when they try to execute the platformio system command. I am guessing these is some issue with user/permissions (as the daemon scripts are run as user "root"), but I am not sure.
Also, I've had similar functionality working previous and the issue may be with a recent update/re-install of PlatformIO on the Pi.
Any suggestions or comments would be wonderful! Thanks!