I am trying to use EasyTransfer library to send a struct with UART, and sendData() function has a timer itself, it works in every 1000 ms , i need to change this to a lower value but i couldn't find the way to change it to something else. Can you help me with this, i would be very happy.
Link of the library
This is the Transmitter code, and when i get values on the receiver, values are like this
2, 4, 6, 8, 10 so as i understand sendData() function has a timer that makes it work in every 1000ms, i hope i explained the situation, sorry for my english, thanks.
int a ;
struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to send
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int16_t blinks;
int16_t pause;
};
//give a name to the group of data
SEND_DATA_STRUCTURE mydata;
void setup(){
Serial.begin(9600);
//start the library, pass in the data details and the name of the serial port. Can be Serial, Serial1, Serial2, etc.
ET.begin(details(mydata), &Serial);
}
void loop(){
a++
ET.sendData();
delay(500);
}