Commit Graph

21 Commits

Author SHA1 Message Date
Sascha
087b9f30c8 house keeping
Added some comments for easier browsing through the source and corrected a type.
2022-07-15 14:09:40 +02:00
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
2022-07-14 15:29:54 +02:00
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.
2022-07-14 13:58:34 +02:00
Sascha
c6b16143a9 Replaced undefined sleep_time with seconds 2022-07-13 12:58:36 +02:00
Sascha
4b2892dd55 Small improvement to debug messages in fdrs_sensor.cpp
Just two small additions making debugging a little bit more convenient:

- Added value of data to FDRSBase::load
- Added additional text tp FDRSLoRa::init
2022-07-13 08:21:16 +02:00
Sascha
0fd7a84dca Added support to choose either LoRa or ESPNow sensor
by defining USE_LORA or USE_ESPNOW the sensor is set up as exactly that.
2022-07-12 15:12:34 +02:00
Sascha
daf4adefd9 Debug helper :)
I find it very convenient for testing to have altering values within the sensor sketches, as it is easier to see if new values are arriving. Therefore replaced the fixed humidity value to a random value between 0-100.
2022-07-12 11:21:46 +02:00
Sascha
ef573a8f45 Bugfix: Updated fdrs_sensor.h of Universal_Sensor_beta
A "LORA" was missing in the definition for FDRS_... Lora settings which led to a compile error. Fixed.
2022-07-12 11:11:31 +02:00
Sascha
700f87b6a4 houeskeeping in Universal Sensor's config file
Put FDRS_DEBUG to top
Some formatting and further explanations on the settings.
Uncommented local LoRa settings, so by default the global fdrs settings are taken.
This makes the setup process easier and less error-prone.
2022-07-11 16:25:03 +02:00
Sascha
249904fbc4 Refactoring for easier understanding while coding
Step one: refactor sensor_setup.h -> fdrs_sensor.h
2022-07-11 15:59:47 +02:00
Timm Bogner
3979c09dd7 changed reading_id to uint16_t 2022-07-10 20:38:43 -05: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
Timm Bogner
0da17e0ddb
Merge pull request #50 from thefeiter/add-prefix-to-defines-for-pio
Add prefix to defines and unify SPI initialization
2022-07-07 18:03:32 -05:00
Binder Tronics
7edfe72742 typo 2022-07-07 19:59:32 +02:00
Binder Tronics
74b2cd33ac add docs 2022-07-07 19:31:11 +02: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
Sascha
b2423b5265 cleanup of examples folder
- copied fdrs_functions.h to the root dir.
- removed all local occurances of fdrs_sensor.h and included the global <fdrs_sensor.h> instead.
- removed all local occurances of fdrs_functions.h and included the global <fdrs_functions.h> instead.
- made inclusion of fdrs_globals.h the default instead of using the llocal definitions in the file everywhere were FDRS_xxx is defined correctly.
- Fixed the faulty calls to functions where the local defines instead of the FDRS_xxx defines were used, e.G. BAND instead of FDRS_BAND
- For easier debugging I added some variation to the sensor sketches: Humidity values are randomly choosen between 0-100. For ease of view I made the first digit of the temperature values match the Reading_ID
2022-07-06 01:03:22 +02:00
Sascha
5ef5b73df3 Cleaned up library base structure
* keywords.txt (for syntax highlighting), library.properties (for a proper description added
* moved Universal_Sensor_beta to the examples directory
* moved Sensors, FDRS_Sensor and FDRS_Gateway to resources folder. They contain documentation which needs to be kept (to be discussed where to put that later on) but are fully redundant as they are just duplicates of the different sensors / gateways in the examples folder.
2022-07-06 00:33:32 +02:00