I am trying to create a cronjob, which sets the GPIO pin 10 to high at a given time. I am using the crontab of the default user "pi" and have verified, that the command
gpio -g write 10 1
works properly, executing it via the terminal / SSH connection and checking it with
gpio -g read 10
which is printing "1".
Doing the same using the crontab with
15 18 * * * gpio -g write 10 1
in order to get the same result like doing it manually, doesn't work and I'm getting the result "0", when I am checking with gpio -g read 10 again.
Does someone know what I'm doing wrong?