Commit Graph
12 Commits
Author SHA1 Message Date
Florian a84df78a33 [RN8209] Detect voltage changes (#1850)
Voltage changes > 2V will trigger a data sending
2024-01-05 09:33:25 -06:00
Florian 8c8dc6b6f6 [ONOFF] ON OFF behavior fixes (#1828)
-Avoid plug restart in case of OverCurrent detection, introduced with central queue add
-publish uselaststate value
-if uselaststate is false we switch off the relay at restart
2023-12-07 15:48:06 -06:00
Florian eb5b8fa291 [SYS/BT] Semaphores and new BT Controller (#1819)
Add semaphore to the enqueue calls to avoid concurrency issues
Add new BT controller to avoid scan evt timeout bug
2023-12-01 07:15:07 -06:00
Florian 029409c0c3 [SYS] Implement a central queue (#1767)
to avoid concurrency issues when modules or/and gateways want to publish data
2023-11-08 07:26:21 -06:00
Florian 375ce91ece [SYS] Add global task watchdog timer (#1724) 2023-08-03 06:48:25 -05:00
Florian 4a28f491f5 [RN8209] Add task WDT (#1657)
Add WDT and reduce update as we now have a change based pub mechanism
Base the change detection on current rather than power and simplify it
Round the result to 2 digits after comma
Add docs
2023-05-30 08:14:23 -05:00
Florian b03e18260f [RN8209] Fix publishing repeat (#1631) 2023-05-02 14:10:29 -05:00
Florian 25991bfbb4 [RN8209] Publish on change detect and heap usage optim (#1630)
Publish the RN8209 depending on a threshold added to a frequency
Also merge the 2 tasks into one to save heap
2023-05-02 10:31:58 -05:00
Florian 587797a7b3 [RN8209] Fix processlock usage (#1623)
* [RN8209] Fix processlock usage

Update processlock usage to the while, instead of the higher level condition that is never checked after the task is launched
2023-04-28 16:02:23 -05:00
Florian 9850d1d5dd [RN8209] Avoid power returning 0 (#1497)
don't return data when the read is unsuccessfull
2023-03-02 11:12:11 -06:00
Florian 51357191df [ONOFF] Add overcurrent protection (#1426)
Add a function that switches OFF the actuator if the current measured is more than MAX_CURRENT_ACTUATOR
2023-01-26 19:51:12 -06:00
Florianandh2zero 8ee1c4e524 RN8209 energy sensor support with watt, voltage and current. (#1337)
Co-authored-by: h2zero <powellperalta@gmail.com>
2022-11-29 18:41:47 -06:00