Hi,
I have two YUN's and I would like them to communicate with each other via REST:
-
On the first YUN, I would like to have my Temperature Sensor, like in the example http://arduino.cc/en/Tutorial/TemperatureWebPanel#.UxVhD2eRAjE
-
On the second YUN, I would like to install an LCD screen to display the Temperature from the first YUN http://arduino.cc/en/Guide/TFT#.UxViP2eRAjE
Here is the catch: I want the second YUN to GET/FETCH the value of the temperature sensor from the first YUN. I don NOT want the fist YUN to initiate the transaction, it MUST be initiated by the second YUN
I believe the coding of the first YUN is more or less standard as I followed the above mentioned example - Through a browser I can get/fetch the value of the Temperature sensor
My question relates to the programing of the second YUN and how to program it to get/fetch the data from the first YUN. How do I go about doing this ?
The best solution I can think of is using the Process.h library and execute curl command to get/fetch the data from the first YUN. Am I missing something ? Is there a better method of getting/fetching the data ?
Thanks
Gregg