Code Function Line of Code RF24, : Step I
Code Function Line of Code RF24, : Step I
In the loop function: The sketch checks whether any data has arrived at the if (radio.available())
address using radio.available() method. This method returns TRUE value if we {
any data is available in buffer. char text[32] = {0};
If the data is received, then it creates an array of 32 characters filled with zeros radio.read(&text, sizeof(text));
(later the program will fill it with the received data). To read the data we use Serial.println(text);
the method radio.read (& text, sizeof (text)). This will store the received data }
in to our character array.