Commit Graph

3780 Commits

Author SHA1 Message Date
Maxim Prokhorov
34fecbcd18 draft 2023-05-12 01:37:28 +03:00
Maxim Prokhorov
7703d9ba2b api: reference settings keys 2023-04-13 19:39:17 +03:00
Maxim Prokhorov
b64e7f91c1 web: revert to per-file include checks
minimal & single-source builds should coexist yet again
2023-04-13 19:22:49 +03:00
Maxim Prokhorov
7c5e8e3f8b relay: minimal build warnings 2023-04-13 19:09:03 +03:00
Maxim Prokhorov
ea6eb52deb web: only include web printer when needed 2023-04-13 18:00:57 +03:00
Maxim Prokhorov
ffd23d095b web: print api in namespace
also fixing leftover API dependency issues
2023-04-13 17:34:01 +03:00
Maxim Prokhorov
9ec61ac36f api: namespace, fixed types 2023-04-08 22:03:03 +03:00
Maxim Prokhorov
643f03252f wifi: should not assume after-move state is well defined 2023-04-08 17:55:49 +03:00
Maxim Prokhorov
f94735759a wifi: small static overhead 2023-04-08 17:55:49 +03:00
Maxim Prokhorov
dbd7e9f424 wifi: can't scan while establishing connection
sdk would silently cancel both
2023-04-08 17:55:49 +03:00
Maxim Prokhorov
aa2476e4a7 wifi: system check just after booting
helper would block 2nd action, wifi is not enabled yet
fixing behaviour introduced in 28f3b7da8

also make boot action optional
2023-04-08 17:55:48 +03:00
Maxim Prokhorov
add82d3941 wifi: no ns prefix when already inside of ns 2023-04-08 17:55:31 +03:00
Maxim Prokhorov
45384d70f8 wifi: sleep type and tx power from sdk 2023-04-08 17:55:30 +03:00
Maxim Prokhorov
c091bc01dd utils: return blocking delay condition result 2023-04-07 14:43:54 +03:00
Maxim Prokhorov
b409dc2787 relay: unused file 2023-03-30 14:14:56 +03:00
Maxim Prokhorov
dd375fef92 sns: local overload 2023-03-30 13:57:06 +03:00
Maxim Prokhorov
8817e7fc3e ci: fix unsed warnings 2023-03-30 12:22:35 +03:00
Maxim Prokhorov
02f6c7d0e7 wifi: compress settings in string views
also get rid of flashstringhelper
2023-03-30 12:21:27 +03:00
Maxim Prokhorov
c45b43cfa4 mqtt: dont display state when disabled 2023-03-30 12:21:27 +03:00
Maxim Prokhorov
a6031c7720 types: real pointer should take precedence over array
*should* fix most constexpr'ness issues when inlining
(but, now has a small overhead of template instantiation)
2023-03-30 12:21:27 +03:00
Maxim Prokhorov
a9220edad4 alexa: namespace 2023-03-30 12:21:27 +03:00
Maxim Prokhorov
fc74b85e2f pio: force toolchain update 2023-03-27 20:28:26 +03:00
Maxim Prokhorov
4c8a9d3b7a webui: npm audit
make dependabot happy
2023-03-27 20:23:41 +03:00
Maxim Prokhorov
26fc2abc88 pio: typo
(redraw)
2023-03-27 19:29:02 +03:00
Maxim Prokhorov
481e851d05 pio: bump platform_latest to 4.2.x 2023-03-27 19:22:16 +03:00
Maxim Prokhorov
bcb6f6b2d4 pio: missing default env value 2023-03-27 19:20:20 +03:00
Maxim Prokhorov
cfab435275 pio: experiment with cachedir 2023-03-27 19:12:27 +03:00
Maxim Prokhorov
3be530553d thermostat: use magnitude type not its index
fix #2585
2023-03-27 19:08:18 +03:00
Indu Prakash
2e19de7a44 webui: show message only for real pin-lock failures (#2584) 2023-03-17 14:39:03 +03:00
Maxim Prokhorov
3a1e041f51 gpio: notify about failed locks 2023-03-16 14:45:04 +03:00
Maxim Prokhorov
175c04acc1 system: task'ify every pending dns request
allow more than one request, until lwip api rejects the call
2023-03-15 20:04:01 +03:00
Maxim Prokhorov
8804de2130 utils: redundant implementation 2023-03-15 17:06:13 +03:00
Maxim Prokhorov
8f1c44fe69 sns: decimals aka precision as a setting
see #2550
2023-03-15 17:06:13 +03:00
Maxim Prokhorov
457e47edd9 wifi: dns is not required for static config
see #2582
2023-03-15 17:06:13 +03:00
Maxim Prokhorov
fd7f97eb24 settings: test conversions properly
separate convesions from the main source to allow test builds
extra unit to verify that both duration plain input and
spec work as intended

also fix wdt triggered when unknown symbols are encountered at the end
of duration string (e.g. 10000y)
2023-03-15 17:06:13 +03:00
Maxim Prokhorov
0e8611588b system: generic duration parser and sleep commands
updated duration parser with a fixed type instead of just millis
separate decimal and floating point converter as well, try to avoid
possible precision loss with microseconds use
2023-03-15 17:06:13 +03:00
Maxim Prokhorov
6441a68355 rpn: separate sleep operators 2023-03-15 17:06:13 +03:00
Maxim Prokhorov
83c9df9805 bmx280: suspend and resume
separate branches for i2c search and init
replace optimistic waits with a status check
2023-03-15 17:06:13 +03:00
Maxim Prokhorov
4f72c60b59 system: before and after sleep callbacks 2023-03-15 17:06:13 +03:00
Maxim Prokhorov
6e3baf3061 gpio: short source file paths
leave only the filename itself
2023-03-15 17:06:13 +03:00
Maxim Prokhorov
2f6d7ce3d3 system: light and deep sleep api
see #2578

* deep sleep api without ESP class dependency
* rf + cpu light sleep for cases when deep sleep cannot be used
* generic time-based light sleep; nonos does not halt cpu,
  unlike the wakeup variant. timers also keep going, so
  this has to be used with extra care

pending some 'deferred' variant and before and after sleep actions
2023-03-15 17:06:02 +03:00
Maxim Prokhorov
28f3b7da84 wifi: turned off on boot 2023-03-10 01:00:20 +03:00
Maxim Prokhorov
0ab8c855e2 wifi: revert to no fpm settings 2023-03-10 00:59:19 +03:00
Maxim Prokhorov
be9de1de14 gpio: pin mode getter 2023-03-10 00:55:53 +03:00
Maxim Prokhorov
7bf886541b mhz219: fix response checks and implement range setting
if data size and crc are ok, make sure to notify the caller
rework parameter injection and make sure endianess is right

auto-calibration and range are both a setting and a build flag
2023-03-05 01:55:55 +03:00
Maxim Prokhorov
670b5d68d5 wifi: both light and modem sleep modes are used 2023-02-05 00:49:35 +03:00
Maxim Prokhorov
9789bba923 wifi: shorter keys for forced sleep 2023-02-05 00:44:04 +03:00
Maxim Prokhorov
bb4e74d03f wifi: experiment with forced light sleep
see #2578

make TurnOff action select sleep mode from available settings
wifi.off and wifi.on commands in addition to existing AP & STA

overriding buttons is... problematic?
e.g. selecting LO trigger and existing hw pushbutton GPIO,
we are most likely to trigger long-click event
2023-02-04 21:57:44 +03:00
HamedTa
0db47f5ec9 ina219: fix shift value (#2577)
According to the datasheet, ADC gain bits are [11...12]
2023-01-28 22:45:27 +03:00
Maxim Prokhorov
f21ddba6f0 relay: mqtt handlers are constexpr 2023-01-18 06:14:57 +03:00