i got 2 arduino and i want the one to take data and the other read that data and send it via ethernet to a server how can i do that??
To the first arduino im using the e-health shield and at the second i got an ethernet shield.
for the e-health shield im using this code :
include <eHealth.h>
#include <PinChangeInt.h>
int cont = 0;
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(115200);
eHealth.initPulsioximeter();
PCintPort::attachInterrupt(6, readPulsioximeter, RISING);
}
// the loop routine runs over and over again forever:
void loop() {
float temperature = eHealth.getTemperature();
Serial.print("Temperature (ÂșC): ");
Serial.print(temperature, 2);
Serial.println("");
Serial.print("PRbpm : ");
Serial.print(eHealth.getBPM());
Serial.print(" %SPo2 : ");
Serial.print(eHealth.getOxygenSaturation());
Serial.print("\n");
Serial.println("=============================");
delay(60000); // wait for a second
}
void readPulsioximeter(){
cont ++;
if (cont == 50) { //Get only of one 50 measures to reduce the latency
eHealth.readPulsioximeter();
cont = 0;
}
}