I have a sketch with multiple functions in it. The 2 main functions in that sketch are
Now these functions are called from
loop(). The thing is I want these functions to run at different times. Basically I want the
get_data function to run once every 4 minutes and the
post_data function to run once every hour. How can I achieve that?
As far as I know, you can't run multiple programs together on an Arduino Mega.
P.S: I'm new to Arduino programming.