Files
ESPEasy/docs/source/Plugin/P082_events.repl
T

46 lines
901 B
Plaintext

.. csv-table::
:header: "Event", "Example"
:widths: 30, 20
"
``GPS#GotFix``
Will trigger when the GPS unit got a good position from the satellites.
","
.. code-block:: html
on GPS#GotFix do
GPIO,2,1 //LED on
endon
"
"
``GPS#LostFix``
Will trigger when the GPS unit is not having a good position from the satellites.
","
.. code-block:: html
on GPS#LostFix do
GPIO,2,0 //LED off
endon
"
"
``GPS#travelled``
When configured to update every N meters travelled, this event will be triggered if the GPS moved more than N meters away from the last position this trigger was given.
This means the total travel distance can be more if the GPS does not move in a straight line.
","
.. code-block:: html
on GPS#travelled do
LogEntry,'Travelled %eventvalue% meter'
endon
"