I am trying to make a signal quality meter. I need to be able to send 2000 bytes of data over the course of one second. Can any one tell me how I may do this?
I think I got it with this....
void loop() {
count++;
delay(1);
if (count == 2000) {
vw_send((uint8_t *)count, count); //Send all the data in "count"
vw_wait_tx(); // Wait until the whole message is gone
}
Do you agree?
Using virtual wire?
I thought data rate was limited to 2000, sending 27 bytes at a time.
This will only send when you the count gets to 2000
if (count == 2000) {
vw_send((uint8_t *)count, count); //Send all the data in "count"
vw_wait_tx(); // Wait until the whole message is gone
}
while this will take at least 2000mS (2 seconds) before it even sends
void loop() {
count++;
delay(1);
if(...){...}
}
Thank you... you are quite right. Just saw this in the documentation.
Messages of up to VW_MAX_PAYLOAD (27) bytes can be sent