![Emakefun RF-NANO Скачать руководство пользователя страница 24](http://html1.mh-extra.com/html/emakefun/rf-nano/rf-nano_operating-instructions-manual_2398917024.webp)
Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
24
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
.
(
"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