diff --git a/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino b/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino index 05398fc4..0df454af 100644 --- a/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino +++ b/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino @@ -95,6 +95,9 @@ void setFlag(void) { transmittedFlag = true; } +// counter to keep track of transmitted packets +int count = 0; + void loop() { // check if the previous transmission finished if(transmittedFlag) { @@ -127,8 +130,8 @@ void loop() { Serial.print(F("[nRF24] Sending another packet ... ")); // you can transmit C-string or Arduino string up to - // 256 characters long - transmissionState = radio.startTransmit("Hello World!"); + // 32 characters long + transmissionState = radio.startTransmit("Hello World! #" + String(count++)); // you can also transmit byte array up to 256 bytes long /*