Commit Graph

36 Commits

Author SHA1 Message Date
Jeff Lehman
1f4021dda4 decouple READING_ID from LoRa address 2022-08-03 20:40:41 -05:00
Timm Bogner
0cc91d82e0
Merge branch 'dev' into dev 2022-08-01 18:18:55 -05:00
Timm Bogner
8c57e910c3
Merge branch 'dev' into dev_fixarduinoexamples 2022-07-31 23:48:50 -05:00
Sascha
795bf1c0e9 Applied patch #88
Applied patch #88 from @Aviateur17. This fixes the compile issues for sensor sketches. Gateway sketches still do not compile. Will check if this can be just applied the same way as the fix for the sensors.
2022-07-31 21:51:35 +02:00
Jeff Lehman
52069eae4d Fix Arduino compile issue 2022-07-31 08:37:10 -05:00
Sascha
a4e24d841f Changed usage of LORA_TXPWR to FDRS_TXPWR
After the local and global settings have been checked, the corresponding FDRS_xxx must be used. Changed this as not doing so leads to compile errors if the local setting is not set but the global one.
2022-07-30 21:48:47 +02:00
Jeff Lehman
57e4ebfe89 Small changes in way ACK stats are calculated 2022-07-29 10:35:41 -05:00
Jeff Lehman
f32a4f9f9d Feature add: LoRa SystemPacket ping reply 2022-07-28 19:11:46 -05:00
Timm Bogner
91bcf22361
Merge pull request #83 from aviateur17/dev_loratxpow
Add ability to adjust LoRa transmit power #66
2022-07-28 13:17:32 -05:00
Jeff Lehman
4457bede78 Added ability to adjust LoRa transmit power #66 2022-07-27 19:46:41 -05:00
Jeff Lehman
def150b49c Use READING_ID as part of LoRa address. #65 2022-07-26 13:25:06 -05:00
Jeff Lehman
e26d44ff44 Merge branch 'dev' of https://github.com/aviateur17/Farm-Data-Relay-System into dev 2022-07-26 08:29:23 -05:00
Jeff Lehman
eed87ac84c Validate CRC when sensor does not want ACK - improvement #54 2022-07-26 06:40:50 -05:00
Timm Bogner
90ac7148fe
Merge branch 'dev' into dev 2022-07-25 15:25:11 -05:00
Jeff Lehman
269fd335c2 Add LoRa ACK & CRC functionality for sensors #54 2022-07-25 13:28:21 -05:00
Sascha
62c247275a Applied changes to FDRS_Sensor and FDRS_Gateway folders 2022-07-23 01:09:58 +02:00
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.
2022-07-22 23:41:52 +02:00
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.
2022-07-21 14:01:51 +02:00
Sascha
c27bffe1ec Further debug enhancements
Added Id and data content to debug message.
Also changed the order to meet the serial debug output of the gateway - this way it is much easier to check if what has been sent is what has been received.
2022-07-21 12:11:35 +02:00
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.
2022-07-21 11:46:16 +02:00
Sascha
06036e54e4 Fixed issue with ignored global settings in fdrs_sensor.h
This needs to be checked, especially in the new class-based model of sensors and gateways: First the global settings must be checked and the corresponding local settings for a sensor / gateway commented out.
Then either the one or other is saved in a FDRS_prefix variable. After that checks must soley be done against FDRS_variables.
2022-07-09 19:13:36 +02:00
Sascha
9e57a8f299 Refactored DEBUG and DBG to FDRS_DEBUG and FDRS_DBG
Changed those values to be prevent compiling issues with PlatformIO and also as it is good practice not to use names which easily could collide with other libs.
Also removed a duplicate line from keywords.txt
2022-07-08 08:41:58 +02:00
Timm Bogner
8825396298
Merge pull request #49 from Gulpman/dev
Dev: refactoring GLOBALS to FDRS_GLOBALS
2022-07-07 18:06:01 -05:00
theFeiter
d093128e7c only use defined spi pins on ESP32 2022-07-07 12:38:57 +02:00
theFeiter
6b51e1c978 add prefixes to defines 2022-07-07 12:37:04 +02:00
Sascha
25fb6b4d26 refactored GLOBALS to FDRS_GLOBALS
Globals is just too... global :)
Could also conflict with other libraries.
2022-07-07 11:40:12 +02:00
Timm Bogner
3152062023 moving and shuffling 2022-07-05 09:05:31 -05:00
Timm Bogner
21c1b4be59 housekeeping 2022-06-30 08:30:24 -05:00
DevilBinder
f06d094d53 fix type 2022-06-24 18:21:39 +02:00
DevilBinder
a0e65ffeff Add macro to enable debugging 2022-06-23 20:36:35 +02:00
DevilBinder
609efe0d40 Move type into its own header file so gateways and sensors can share it 2022-06-21 21:08:31 +02:00
DevilBinder
0529c6a4dc Add credits 2022-06-20 22:48:14 +02:00
DevilBinder
657b845f95 remove dead code 2022-06-20 22:42:46 +02:00
DevilBinder
cdb5e5e0fd Add dependency switch macro 2022-06-20 22:38:28 +02:00
DevilBinder
b16489b42e add LoRa 2022-06-20 22:24:45 +02:00
DevilBinder
33809f569d Condense into a single sensor file 2022-06-20 21:50:02 +02:00