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
Maxim Prokhorov
9025a4eb42
sensor/si7021: unused variable
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
Xose Pérez
c291b96e5a
Move strings to progmem
6 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
gn0st1c
66fe61bfdb
Update SI7021Sensor.h
6 years ago
gn0st1c
40549ff8f6
new devices&sensors + some fixes
new devices&sensors + some fixes
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
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
96027a5933
Fix hot-unplug-plug test for SI7021 sensor
6 years ago
Xose Pérez
947f9bab73
I2C sensors using new i2c interface
6 years ago
Xose Pérez
c38911beae
Fix reference to sensor slot method
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
e1baf48b9b
Option to disable completely new sensors module
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
7f872f43a8
Code for SI7021 with BRZO (not working)
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
7cc06d9892
Homogeneize sensor error codes
6 years ago
Xose Pérez
f8e7a564f1
Support for SI7021 sensor, I2C enabled by default using Wire library
6 years ago