I'm in need of a little guidance in a project I'm working on.
Basically, I'll be using two arduinos:
The first one will have:
- 1 RF Link Receiver (linke here: https://www.sparkfun.com/products/10532)
- 1 Ethernet Shield
The Second one will have
- 1 RF Link Transmitter (linke here: https://www.sparkfun.com/products/10534)
- 1 RHT03 Humidity and Temperature Sensor
As you can probably figure, what I want to do is read some data from the sensor in the second arduino, transmit it over RF, receive it and send it to a server in the web.
I'm having some trouble deciding what approach to take in sending via Web and receiving the data over RF. I'll need to constatly listen to the receiver, and If I receive a message then send it. I thought about coding a Linked List, and "storing" the values of the sensed data, and then send a http request for each object in the list until it is empty. But what if I receive another read from the sensor while I'm sending the message? What way would be best to send the data over the arduino Ethernet Shield and still be able to get the messages from the RF receiver?
I thought about interrupts, but I have no idea how it would behave while reading the response of the HTML request, as most examples use millis() and delay functions.