I am working on a weather station aplication. I need to do 3 tasks at the same time. One task does not have to stop the other, is this posible?
1- Recieve sensors data from serial port every 5 minutes and store them in memory
2- If there is data in memory that has not been sent, send it to a server in internet through gprs. If the server is down keep trying until it gets through.
3- If the modem (fastrack) receives a SMS, send an SMS to the same number from the first SMS with the last data gathered from the sensors.
I cant see how I can make them all work toguether at the same time. For example if the modem is trying to send the information to the server, how is it going to be ready to recieve an SMS and run task 3?
I would really apreciate your help.
Thanks in advance.