Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
Mirf.config();
}
void loop()
{
Mirf.setTADDR((byte *)"FGHIJ"); //Set the receiver address
value = 100;
Mirf.send((byte *)&value); //Send instructions, send random number value
Serial.print("Wait for sending.....");
while (Mirf.isSending()) delay(1); //Until you send successfully, exit the loop
Serial.print("Send success:");
Serial.println(value);
delay(1000);
}
Data sent by transmitter 1:
Figure 3-2-1
Launch data program 2 code:
Code path: RF-NANO Demo Program\Multiple send to one receive
communication\Emitter2\Emitter2.ino
Source code