Home Forums EasyTransfer Library Support Forum Suggestion: .end command to complement .begin Reply To: Suggestion: .end command to complement .begin

#3156
Bill
Member

That would work, you can also read data a certain number of times and then break if nothing came back. like:

int i=0for(; i<10; i++){

if(ET.receiveData())  break;

else delay(100);

}

if(i==10) //put failure code here, since the for loop never broke before i got to 10.

But there’s no right way, it’s whatever way you want to do it. The library itself will never lockup your Arduino because no data is received.