Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  •  Basic dump of data to serial console and LCD indicating RX success
  •  MQTT repackage data and forward to broker
  •  Persistent rainfall data collection and management
  •  Removal of LCD screen support as normal sender does not have this
  •  Possibly bring wind vane calibration into this module vs. The station itself???
  •  Calibrate the RTC on the sender via the receiver module. This will happen in the LoRaWAN integration as I have access to easy uplink/downlink communications

Software configuration

Rename conf.h to config.h

I’m actively developing and this shields my WiFi SSID and password details. conf.h is a template. The following edits are all in config.h

LoRa radio frequency

Code Block
//===========================================
//LoRa band
//===========================================
#define BAND 915E6  //you can set band here directly,e.g. 868E6,915E6

WiFi connect details

Code Block
//===========================================
//WiFi connection
//===========================================
char ssid[] = "ssid";      // WiFi Router ssid
char pass[] = "password";  // WiFi Router password

MQTT settings

Set to your local mqtt broker. If you do not have a broker, feel free to comment line #5 below and uncomment line #4

Code Block
//===========================================
//MQTT broker connection
//===========================================
//const char* mqttServer = "test.mosquitto.org";
const char* mqttServer = "192.168.5.66";
const int mqttPort = 1883;
const char* mqttUser = "mqtt_user";
const char* mqttPassword = "mqtt_password";
const char mainTopic[20] = "RoyalGorgee/";

Timezone details

Code Block
//===========================================
//Timezone information
//===========================================
const char* ntpServer = "pool.ntp.org";
const long gmtOffset_sec = -7 * 3600;
const int daylightOffset_sec = 3600;

MQTT Topic Structure

...