#include <EasyTransfer.h>
EasyTransfer ET;
//Declare Data Structure for the EasyTransfer Library
//Note: Data Structure must be same on TX and RX...
struct DATA_STRUCTURE{
int int_data;
char char_data;
};
DATA_STRUCTURE myData;
int counter;
void setup()
{
//Initalizing EasyTransfer Serial Ports
Serial.begin(9600);
ET.begin(details(myData), &Serial);
counter = 0;
}
void loop()
{
//Setting Values to Variables
myData.char_data = counter;
myData.int_data = counter++;
//Sending Data
ET.sendData();
delay(1000);
}