Max Prokhorov
0d40d2275a
Load sensor classes later ( #2128 )
* Sensors: refactor configuration
- move sensor implementaion to the .ino,
remove dependency undef / define from sensor files
- update test/build/sensor.h from SENSOR_SUPPORT
- allow to change sensor config variables externally
- `#include <...>` for global headers and libraries,
fix relative path for math library
* add missing sns <-> i2c dependency
* ledrelay should return relay_none as default
* rollback to original test header
* include debug header when requested (relative)
4 years ago
Maxim Prokhorov
cb9dba4bb6
sensor/pmsx003: only delete object when it is managed by sensor
5 years ago
Yonsm
fa9ff7dee7
Check value range for PMSX005 and SenseAir CO2 sensor ( #1865 )
5 years ago
Yonsm
0af3b0c28d
Support PMS5003S
5 years ago
Xose Pérez
a80964d255
Replace debugSend calls with DEBUG_MSG macro
6 years ago
Xose Pérez
85fec84a64
Fix PMSX003 sensor dependency on SoftwareSerial
6 years ago
Yonsm
9cbe8dcdf5
Call wakeUp PMS on first reading cycle to avoid not data in a long period (e.g. PMS entered sleeping and then espurna reboot, we should wake up PMS right now)
6 years ago
Xose Pérez
96504cbfeb
Clean up
6 years ago
Rui Marinho
75c1a3675e
Fix incorrect PMS_SUPPORT reference on sensor endif
6 years ago
Rui Marinho
89caf1f39b
Add support for hardware serial on PMSX003 devices
6 years ago
Yonsm
5867e1f904
Correct debug message
6 years ago
Yonsm
f0ca139b52
Support set PMS sensor type dynamically
So you can add more different PMS sensors.
6 years ago
Xose Pérez
7ca3ae5f7d
Adding HCHO magnitude
6 years ago
Yonsm
230e087709
Add file header comment
6 years ago
Yonsm
e2d3af53cc
Remove unnecessary comment code
6 years ago
Yonsm
4947c259c4
Add debug msg prefix
And found DEBUG_MSG could not be used in the sensors header file.
6 years ago
Yonsm
acc314df73
Refine PMSX003 to support PMS5003T/ST
1. Support PMS5003T/PMS5003ST;
2. Replace data reading method;
3. Remove PMS library dependency;
4. Support smart sleeping mode to extend the sensor’s lifetime.
6 years ago
Xose Pérez
26a087dd7c
Check init status of sensors and re-init if they fail on boot ( #353 )
6 years ago
Xose Pérez
eafd333ef5
Update ESPSoftwareSerial using new enableIntTx method
6 years ago
Xose Pérez
feffc290cc
Sensor type, value and slot methods should not set error values
6 years ago
Xose Pérez
7b07b2bec6
Reduce buffer size of EspSoftwareSerial instances
6 years ago
Xose Pérez
2dc2b7d176
Checking code with cppcheck
6 years ago
Xose Pérez
170f0d543c
Option to publish address via MQTT for any sensor
6 years ago
Xose Pérez
e1baf48b9b
Option to disable completely new sensors module
6 years ago
Xose Pérez
d80df39629
Destructors
6 years ago
Xose Pérez
e5bf17d019
Ported V9261F power sensor to new sensors
6 years ago
Xose Pérez
956215eac5
Default slot method in BaseSensor class
6 years ago
Xose Pérez
6e839e3d72
Added sensor IDs
6 years ago
Xose Pérez
c975b11226
Tentative to sensor manifest
6 years ago
Xose Pérez
de4780efbc
Added getters for sensors
6 years ago
Xose Pérez
42f5ee5376
Flag sensor changes to avoid reinitializing them if unnecessary
6 years ago
Xose Pérez
8728d55b7b
Change sensor API, force parameter-less constructors
6 years ago
Xose Pérez
ef04f72228
Headers for Sensor and Filter classes
6 years ago
Oscar Rovira
bf486a3b84
Add long warm up option for sensors (non-blocking), re-organize code, and non-blocking read of PMS
6 years ago
Oscar Rovira
6a58a8a907
Add PMSX003Sensor.h
6 years ago