Max Prokhorov
edb23dbfc4
Convert .ino -> .cpp ( #2228 )
- general conversion from .ino modules into a separate .cpp files
- clean-up internal headers, place libraries into .h. guard .cpp with _SUPPORT flags
- fix some instances of shared variables instead of public methods
- tweak build system to still build a single source file via os environment variable ESPURNA_BUILD_SINGLE_SOURCE
4 years ago
Maxim Prokhorov
2dcf1b2bd8
cfg: move DEVICE and MANUFACTURER to functions
Avoids useless logs like this one:
https://travis-ci.com/github/mcspr/espurna-nightly-builder/jobs/316891026#L449
4 years ago
Max Prokhorov
b500273029
sns: add SI1145 sensor ( #2216 )
Co-authored-by: Joop Hilverink <33230021+HilverinkJ@users.noreply.github.com>
4 years ago
Max Prokhorov
49b6d351d9
PIO/hardware.h: Update naming ( #2214 )
* update platformio.ini comments
* espurna-base -> espurna-core-webui
* esp8266-<flavour>-<size>-base -> esp8266-<size>-<flavour>-base
* clean-up ESPURNA_CORE detection, use boards function
4 years ago
ziggurat29
387d4cea58
Board definition for the Gosund WP3 smart socket ( #2191 )
Co-authored-by: ziggurat29 <xxx@yyy.zzz>
4 years ago
ziggurat29
7496606140
Example for Generic ESP01 boards with 512KiB flash ( #2185 )
Co-authored-by: ziggurat29 <xxx@yyy.zzz>
4 years ago
Max Prokhorov
ba3e6267e6
Button pin provider & runtime settings ( #2162 )
* wip
* cleanup buttons-through-serial code, remove hw mention from button module
* remove wip
* implement mqtt settings
* fixup struct members, dual no longer allocates debouncer
* add missing debounceevent lib
* fix missing event_handler, update names
* fix namespace
* drop lib
* fix int<->bool comparison
* Move gpio16 handling from DigitalPin to EventHandler
* Cleanup debounceevent headers
* Don't expect system headers to be included
* re 70b54c489f
- no allocation, for real
* Adjust settings names
* dont retain by default
* unused
* typo
* Fix length type (ref 6017ad9474
)
* Move pin class outside of debounce lib, lowercase ns
* move event handling inside of button_t
* refactor config. ..._MODE -> _CONFIG, ..._MODE_... -> ..._ACTION_...
* fix test
* naming
* move indexed value to header
* refactor actions into direct opts
* fix webui, fix buttons not respecting old user setting
* change button config format from bitmask to a struct, adjust settings conversion
* proxy some more header defautls, fix web kv
* gpiopin
* adjust webui func to support every setting
* clarify single-return event->string
* fix dual setting
* fix dual packet condition, de-duplicate funcs
* fix bogus warning
4 years ago
Max Prokhorov
f7f41980b6
Headers cleanup ( #2134 )
* Config: remove prototypes.h
* fixup order
* word
* add missing
* fix warning while still using .ino
* bad at c/p;
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