Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
5 characters
Mirf.payload = sizeof(value);
Mirf.channel = 90; //Set the used channel
Mirf.config();
Serial.println("Listening..."); //Start listening to received data
}
void loop()
{
if (Mirf.dataReady()) { //When the program is received, the received data is output
from the serial port
Mirf.getData((byte *) &value);
Serial.print("Got data: ");
Serial.println(value);
}
}
Data received by a receiving device
Figure 3-1-2
3.2 Implement multiple send to a receive communication
3.2.1 Experimental principle block diagram