#pragma once // Save a private copy as lorawan-config.h in the sketch folder. #define RENKE_LORAWAN constexpr char lorawanJoinEui[] = "REPLACE_WITH_16_HEX_DIGITS"; constexpr char lorawanAppKey[] = "REPLACE_WITH_32_HEX_DIGITS"; static_assert(sizeof(lorawanJoinEui) == 17, "Enter the 16-digit JoinEUI (AppEUI)."); static_assert(sizeof(lorawanAppKey) == 33, "Enter the 32-digit AppKey."); // Match the US915 channel sub-band reported by your gateway. constexpr uint8_t lorawanSubBand = 2; constexpr uint32_t lorawanIntervalMs = 300000; constexpr uint8_t algaeSensor = 1 << 0; constexpr uint8_t oxygenSensor = 1 << 1; constexpr uint8_t chlorophyllSensor = 1 << 2; constexpr uint8_t phSensor = 1 << 3; constexpr uint8_t turbiditySensor = 1 << 4; constexpr uint8_t temperatureSensor = 1 << 5; constexpr uint8_t levelSensor = 1 << 6; constexpr uint8_t tdsSensor = 1 << 7; // Add each wired analog input only after USB testing, e.g. | phSensor. constexpr uint8_t lorawanEnabledSensors = algaeSensor | oxygenSensor | chlorophyllSensor | temperatureSensor;