mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-12 01:24:04 +00:00
Fixes: #3019 Only setting the internal counter values is not enough. The output values must also be set and a call to any optional formula must also be made. A call to `PLUGIN_READ` will also store the values in RTC.
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
.. csv-table::
|
|
:header: "Command (GPIO/Value)", "Extra information"
|
|
:widths: 20, 30
|
|
|
|
"
|
|
``ResetPulseCounter,<taskIndex>``
|
|
","
|
|
Reset the counters (pulse counter and total counter) of P003 Pulse Counter.
|
|
The taskIndex parameter is optional. When not given, only the first task with this plugin will be cleared.
|
|
|
|
A call to reset the value will also trigger a call to ``PLUGIN_READ`` as if it processes a normal succesful read.
|
|
"
|
|
"
|
|
``SetPulseCounterTotal,value,<taskIndex>``
|
|
","
|
|
Set the value of the total count of P003 Pulse Counter.
|
|
The taskIndex parameter is optional. When not given, only the total count of the first task with this plugin will be set.
|
|
|
|
A call to set the counter total will also trigger a call to ``PLUGIN_READ`` as if it processes a normal succesful read.
|
|
|
|
N.B. The set value is the internal value, so any present formula will be processed after this value is set.
|
|
"
|