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

WIP: System Packets and Big Changes #73

Closed timmbogner closed 1 year ago

timmbogner commented 1 year ago

I'm trying out this PR method to discuss the changes I'm making as I go. I implemented the new packet type, and added a pingFDRS() function to the sensor sketch. This should eventually allow a sensor to choose the nearest gateway to itself. This will also be the framework for controllers to register with a gateway, and then receive incoming commands from the front-end.

I haven't tested much, but pings seem to be coming in at 2-4 milliseconds. Decent! I wonder if it is worth switching to microseconds for more precision. Using RSSI may be good too.