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
Max Prokhorov
298ce8cac2
Refactor get/set/del/hasSetting ( #2048 )
* experimental: refactor get/set/del/hasSetting
* sensors
* lights
* cleaup
* r
* tuya
* fixup! sensors
* fixup! tuya
* header defaults types
* fix lights
* setup already checks for max
* helper for flashstring
* fix overload
* oops
* refactor includes
* warnings
* test with migrate
* add ids in a separate file
* cleanup
rev: crash
rev: domoticz
rev: encoder
rev: loopdelay
rev: hass
rev: i2c
rev2: hass
rev: mqtt
rev: rfm69
rev: relay
rev: rpn
rev: settings setup
rev: hb settings
rev: telnet preprocessor fix
rev: settings wrap
rev: tspk bool style
rev: wifi types
rev: util hb
rev: settings
fixup! rev: settings
* rev: cleanup wifi injections based on new getters
* hasSetting now can return true for empty key
* show hardcoded network in web
* oops
* fix ws referencing wrong index
* ensure empty strings are written
* c/p
* use experimental schema style for payload, mark network as not deletable
* allow to customize converter
* shorter syntax, try using with wifi
* use proper #if syntax to handle definitions that are missing
* fixup ota sc checks getter, cast schEnabled to bool
* add utils header to sensors
4 years ago
Max Prokhorov
0b73882fa0
Update BMX280Sensor
- dynamic number and address setting
- do not return i2c-specific error for wrong values
5 years ago
Craig Markwardt
8d52078bcb
Modify BaseSensor so that each sensor knows number of decimals to represent its magnitude types; update sensor.ino to take advantage of this knowledge; sensors BMX280 and Dallas OneWire are updated with this knowledge; tested with BME280 and Dallas DS18B20 sensors
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
Lazar Obradovic
69cbb056a3
isolate PROGMEM
Isolated dependencies
sensors dependencies
enums, macros and prototypes.
I2C dependencies moved to actual sensor files.
definitelly redefine
6 years ago
Xose Pérez
8a999bb15a
Replacing delay with nice_delay
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
812d8c2bb9
Moving address locking to init method in BMX280 sensor ( #353 )
6 years ago
Xose Pérez
13f8517b25
Fix void return on BMX280 sensor ( #489 )
6 years ago
Xose Pérez
83c4188c07
Testing hot-unplug-plug for BMX280 sensor
6 years ago
Xose Pérez
feffc290cc
Sensor type, value and slot methods should not set error values
6 years ago
Xose Pérez
c0215f0a16
Error reset on _pre for different sensors
6 years ago
Xose Pérez
bc85600e9c
Remove dependency from Sparkfun BME280 library
6 years ago
Xose Pérez
170f0d543c
Option to publish address via MQTT for any sensor
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
4888196b5e
Clean debug messages
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
2bc8794919
Move I2C code in BaseSensor to I2CSensor
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
4c90a1b320
Release lock if sensor has not valid ID
6 years ago
Xose Pérez
de4780efbc
Added getters for sensors
6 years ago
Xose Pérez
4e454331d4
Improved I2C auto-discover avoiding collissions
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
Xose Pérez
86df1c892c
Adapt BME280 code for BMP280 sensor
6 years ago
Xose Pérez
f48c91bd07
Support for BME280 sensor
6 years ago