timmbogner / Farm-Data-Relay-System

A system that uses ESP-NOW, LoRa, and other protocols to transport sensor data in remote areas without relying on WiFi.
MIT License
485 stars 108 forks source link

Removing (nearly) all code from INO files #117

Closed timmbogner closed 1 year ago

timmbogner commented 1 year ago

I've been meaning to do this for a long time. Having code in multiple places was a headache for development and doesn't make sense any longer.

The gateway.ino now looks like this:

#include "fdrs_gateway_config.h"
#include <fdrs_functions.h>

void setup() {
beginFDRS();
}

void loop() {
loopFDRS();
}

So fresh and so clean, clean!

I don't think this should change much in execution, but I've been surprised before. I'm keeping it in this PR until I've finished testing.