#include "libschsat.h" void control(void) { /* * Transfer a command for executing command ID 1 to Arduino using the arduino_send built-in function * The first argument is the Arduino ID (defaults to 0) * The second argument is message ID (1 in our case) * The third argument is the data being transferred (NULL as we don’t have any data to send) * The fourth argument is the buffer to receive data (NULL as we don’t expect a response) * The fifth argument is the time to wait for a response from Arduino (100 ms in this case but it matters little in this case as we aren’t waiting for any response) */ arduino_send(0, 1, NULL, NULL, 100); }