For LoRa and LoRaWAN information, check this repo:
https://github.com/gjlee0802/LoRaWAN-Study
- Use the Arduino Library Manager to install the
RadioHead
,AESLib
library if you want to useToIoTwithLoRa
. - Download
ToIoTwithLoRa
orToIoTwithLoRaWAN
and put it in the Arduino/libraries folder. - Fill in the contents of
config.h
and put it in the sketch folder. You can set this application through this file. - Write the main source code like example
- For Arduino:
Connect SX1278 with arduino as shown as below.
- For NodeMCU SENDER:
Connect SX1278 with NodeMCU as shown as below.
- RadioHead: http://www.airspayce.com/mikem/arduino/RadioHead/
- AESLib: https://www.arduino.cc/reference/en/libraries/aeslib/
- Base64: https://github.com/adamvr/arduino-base64
All messages sent and received by this RH_RF95 Driver conform to this packet format:
- LoRa mode:
- 8 symbol PREAMBLE
- Explicit header with header CRC (default CCITT, handled internally by the radio)
- 4 octets HEADER: (TO, FROM, ID, FLAGS)
- 0 to 251 octets DATA
- CRC (default CCITT, handled internally by the radio)