mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
Merge branch 'dev' of https://github.com/timmbogner/Farm-Data-Relay-System into dev
This commit is contained in:
commit
e989504d25
@ -34,16 +34,19 @@ Enables WiFi. Used only on the MQTT gateway.
|
||||
|
||||
SSID, password, and MQTT credentials are also configurable in 'fdrs_globals.h'.
|
||||
### ```#define USE_SD_LOG```
|
||||
Enables SD-card logging. Used only on the MQTT gateway if sending the MQTT message fails. Make sure to set the correct SD_SS (chip/slave select) pin in the lines below.
|
||||
Enables SD-card logging. Used only on the MQTT gateway if sending the MQTT message fails. Make sure to set the correct SD_SS (chip select) pin in the lines below.
|
||||
|
||||
Logging is done in the following CSV Format: ```timestamp,reading_id,type,value```
|
||||
|
||||
Thanks to [@thefeiter](https://github.com/thefeiter) for this feature!
|
||||
|
||||
Logging is done in the following CSV Format: ```timestamp,reading_id,datatype,value```
|
||||
|
||||
### ```#define USE_LED```
|
||||
This option initializes FastLED! I haven't developed this very much, perhaps you have ideas?
|
||||
|
||||
## Peers
|
||||
### Routing
|
||||
In addition to reacting to packets from general (unknown) ESP-NOW and LoRa devices, the gateway can also listen for traffic from a specific peer's device address (MAC) and react differently than it would to general traffic. This can be used to 'propel' packets upstream or downstream and allows the user to define different paths for data originating from either direction. The user can define up to two peer addresses each for the ESP-NOW and LoRa interfaces (ESPNOW1 & ESPNOW2 and LORA1 & LORA2).
|
||||
In addition to reacting to packets from general (unknown) ESP-NOW and LoRa devices, the gateway can also listen for traffic originating from a specific device address (MAC) and react differently than it would to general traffic. This can be used to 'propel' packets upstream or downstream and allows the user to define different paths for data originating from either direction. The user can define up to two peer addresses each for the ESP-NOW and LoRa interfaces (ESPNOW1 & ESPNOW2 and LORA1 & LORA2).
|
||||
### Buffers
|
||||
Each peer also has a send buffer associated with it. Buffers are enabled by uncommenting their corresponding DELAY macro (ex: ```#define LORAG_DELAY 1000```). When enabled, the gateway will automatically send the buffer contents at the interval specified.
|
||||
|
||||
|
@ -65,6 +65,10 @@ This definition enables debug messages to be sent over the serial port. If disab
|
||||
Enables/disables ESP-NOW.
|
||||
### ```#define USE_LORA```
|
||||
Enables/disables LoRa.
|
||||
### ```#define LORA_ACK```
|
||||
Enables LoRa packet acknowledgement. The device will use CRC to ensure that the data arrived at its destination correctly. If disabled, ```sendFDRS()``` will always return true when sending LoRa packets.
|
||||
|
||||
Thanks to [@aviateur17](https://github.com/aviateur17) for this feature!
|
||||
### ```#define DEEP_SLEEP```
|
||||
If enabled, device will enter deep-sleep when the sleepFDRS() command is used. If using ESP8266, be sure that you connect the WAKE pin (GPIO 16) to RST or your device will not wake up.
|
||||
### ```#define POWER_CTRL (pin)```
|
||||
|
Loading…
Reference in New Issue
Block a user