Files
ESPEasy/docs/source/Plugin/P003_commands.repl
T
Gijs Noorlander fc8c0b56a1 [Pulse Counter] Call PLUGIN_READ after set counter (#3019)
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.
2020-04-14 21:21:50 +02:00

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.
"