sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.63k stars 626 forks source link

Examples: replaced hardcoded value #358

Open Chornomorets opened 4 years ago

Chornomorets commented 4 years ago
dhorner commented 4 years ago

The reason why it was Hardcoded is that it is a check to see if it was a Broadcast message (0xFF). If you changed the destination to another address (other than broadcast) then the change breaks it the code.

It would be better to add:

#define BROADCAST_ADDRESS 0xFF and use that in the code instead of destination.