Commit Graph

73 Commits (7529379408f8459080396ab9b1bb9643815a8259)

Author SHA1 Message Date
Timm Bogner 5340965c3a input via Serial0
data at the Rx of the USB Serial port (normally used for debugging) will now be entered into the getSerial() function
2 years ago
Timm Bogner 4721e72b47 changed peers to neighbors
Better reflects the concept and clears ambiguity
2 years ago
Timm Bogner 6212c58648 move ack settings
hid LoRa settings
2 years ago
Timm Bogner ccf24f50f9 added delay(0) 2 years ago
Timm Bogner 754fb9ce56 ESP-NOW confirmation 2 years ago
Timm Bogner 236afd04e9 Update Irrigation.ino
Co-Authored-By: Kisssys <5122480+Kisssys@users.noreply.github.com>
2 years ago
Timm Bogner bcda928a4a added gypsum soil sensor
Co-Authored-By: Kisssys <5122480+Kisssys@users.noreply.github.com>
2 years ago
Timm Bogner 06aa620c6a 4-channel Relay Controller 2 years ago
Timm Bogner 40f415f405
Merge pull request #98 from timmbogner/two-way-comms
Two-way communications - take 2
2 years ago
Timm Bogner 537f14dc03 added support for TSL2561 2 years ago
Timm Bogner a58cab5774 removed fdrs_sensor.h etc 2 years ago
Timm Bogner 65d31644c8 Merge branch 'dev' into two-way-comms 2 years ago
Timm Bogner 1501817975 subscription list and unified callback
the functionality is almost complete
2 years ago
Timm Bogner 4c0b934b5a Update fdrs_gateway_config.h 2 years ago
Timm Bogner 408779bbd4 Update 1_UART_Gateway.ino 2 years ago
Timm Bogner b3e177a945 fixed gateway 2 years ago
Timm Bogner d1491c686c i guess that fixes it 2 years ago
Timm Bogner e89ac94427 cosmetic 2 years ago
Timm Bogner 9f74426f0b added new abilities 2 years ago
Sascha 32b6a4cdab Added missing parameter checks to fdrs_checkConfig
Added test for logging functions as well as LoRa ACK.
Added the define to all numbered example sketches.
2 years ago
Sascha 4ce0a617af Clean-up of fdrs_checkConfig.h
Removed redundancies from fdrs_checkConfig.h
Also - as an example - added the inclusion of the node config check in 0_MQTT_Gateway
2 years ago
Timm Bogner deabf20a3d readme and sensor examples
moved readmes, added back sensor examples
2 years ago
Timm Bogner b8675edb02 replace old examples 2 years ago
Jeff Lehman 1f4021dda4 decouple READING_ID from LoRa address 2 years ago
Sascha fb9be94242 disabled local lora configuration in sensor and gateway files
By default the local lora configuration must be disabled. This is less error-prone as values from the fdrs_globals.h file are used by default.
2 years ago
Timm Bogner 91bcf22361
Merge pull request #83 from aviateur17/dev_loratxpow
Add ability to adjust LoRa transmit power #66
2 years ago
Jeff Lehman 4457bede78 Added ability to adjust LoRa transmit power #66 2 years ago
Jeff Lehman def150b49c Use READING_ID as part of LoRa address. #65 2 years ago
Jeff Lehman e26d44ff44 Merge branch 'dev' of https://github.com/aviateur17/Farm-Data-Relay-System into dev 2 years ago
Jeff Lehman eed87ac84c Validate CRC when sensor does not want ACK - improvement #54 2 years ago
Timm Bogner 90ac7148fe
Merge branch 'dev' into dev 2 years ago
Jeff Lehman f3d840f944 Disable ACK by default for sensors #54 2 years ago
Jeff Lehman 269fd335c2 Add LoRa ACK & CRC functionality for sensors #54 2 years ago
Jeff Lehman 0bf0015576 Add LoRa ACK & CRC functionality for gateway #54 2 years ago
Sascha 62c247275a Applied changes to FDRS_Sensor and FDRS_Gateway folders 2 years ago
Sascha ae85886e65 added #define USE_ESPNOW to gateway code
Including sections which are ESPNOW specific only if #define USE_ESPNOW is enabled.
2 years ago
Sascha 5e85269373 Clean up of #72
- moved configuration checkup to external file to make sensor and gateway files smaller.
- for sensors the config now only is shown if the sensor does NOT return from Deep Sleep. For example when pressing the reset button or after a crash.
- for gateways the configuration is shown once and also can be forced to be shown with a reset. Code should work for ESP32 and ESP8266 - have only tested it with ESP32.
- fixed issue in fdrs_functions.h - if MQTT_AUTH was enabled but WIFI disabled, the compile crashed.
2 years ago
Sascha 5027623cb8 Fixing configuration system - part 2: gateways
Further work on #71 :
- Added config code to fdrs_functions.h.
- Commented all local config settings -> global config settings will be taken by default.
- added a debugConfig function, to check from where settings have been taken. May be moved to a place where sensors and gateways can share code as this is needed only once. For the sake of simplicity the function made it into fdrs_sensor.h and fdrs_functions.h Needs to be refined, as there is redundancy right now.
2 years ago
Sascha cfa57e388b Fixing configuration system - part 1: sensors
Fixed the configuration system for sensor nodes. Gateway nodes are still to be fixed (work still in process :) )
This has been addressed in #71

Important: For this system to work and make the onboarding easier for new users, global settings must be used by default and therefore local settings must be commented out by default.
2 years ago
Sascha b73b7a4b1c Added LoRa Debug info for BAND and SF to all nodes for better debugging
As there is still a lot of redundancy in the project, in a first step I added the debug messages in each of the places.
2 years ago
Sascha 7526439d85 Return random vaule for sensor nodes
the return value in the sensor sketches was missing the random function. Fixed that.
2 years ago
Timm Bogner 699d7a2840 shwoop 2 years ago
Timm Bogner 1ce8a3eb2b dink
Changed the spammer a little and adjusted some other stuff.
2 years ago
Timm Bogner 6a5e7acd13 sensors are go 2 years ago
Timm Bogner d3e137ab8b unifying gateways etc
more to come
2 years ago
Sascha 087b9f30c8 house keeping
Added some comments for easier browsing through the source and corrected a type.
2 years ago
Sascha dbf6d5b082 Removed double-include of fdrs_gateway_config.h
fdrs_gateway_config. h was included twice. I also simplified th USE_LED configuration block (was defined twice, could be done in one block.
2 years ago
Sascha 3878c27725 Fixed #59
Fixed #59 with the help of aviateur17. Explanation here: https://github.com/timmbogner/Farm-Data-Relay-System/issues/59#issuecomment-1183915731
2 years ago
Sascha 54b21e9a3b Fixed unallowed extra tokens after #endif
Extra tokens at end of #endif directive are not allowed. Arudino IDE does not care but Platform IO does. The specification forbids is as well, so adding a comment behind the endif is a good compromise between overview and conformity.
2 years ago
Sascha c6b16143a9 Replaced undefined sleep_time with seconds 2 years ago