So the project consists of two rasberry pis that are connected via wifi through a server-client relationship. One of the pis is connected to a teensy microcontroller and the other pi is strictly used to send commands and new code.
So far I can send and receive data/files between the two pis via Python sockets. However, I need to create a script that receives the new teensy/arduino code file and automatically compiles and uploads it to the teensy via the command line.
I've searched this countless times and haven't found a clear way of doing this, could anyone help or point me in the right direction?