
Upload the Receiver code to the Metro M0,
from the Weather Station repo. Now whenever
your weather station has power and decides to
send a message, your receiver should be ready to
receive the message, parse it, and print it to the
serial terminal.
6. TEST THE LORA COMMUNICATION
Before you go battery-free, you should test
whether your transmitter and receiver are
working as expected on constant power. Connect
them both to your PC through individual USB
ports, and monitor the serial port that belongs
to the receiver. You should see the received
messages as shown in Figure
G
.
7. MAKE IT BATTERY FREE
Now that everything works on continuous power