Component: Timer ( Data): Difference between revisions
Appearance
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 0.1 |- | width="20%" style="color:gray;..." |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 27: | Line 27: | ||
==Examples== | ==Examples== | ||
An example showing how to use a timer component to send temperature and humidity JSON encoded data string via encoder JSON component | |||
{{Fcfile|Web_JSON_Encoder.fcsx|Web Timer Example}} | |||
==Macro reference== | ==Macro reference== | ||
===SetMacro=== | ===SetMacro=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetMacro''' | ||
|- | |- | ||
| colspan="2" | Sets the macro to be called when the timer event is triggered | | colspan="2" | Sets the macro to be called when the timer event is triggered | ||
| Line 51: | Line 55: | ||
===Start=== | ===Start=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start''' | ||
|- | |- | ||
| colspan="2" | Start the timer | | colspan="2" | Start the timer | ||
| Line 70: | Line 74: | ||
===Stop=== | ===Stop=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Stop''' | ||
|- | |- | ||
| colspan="2" | Stop/cancel the timer | | colspan="2" | Stop/cancel the timer | ||
| Line 85: | Line 89: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:23, 13 July 2026
| Author | MatrixTSL |
| Version | 0.1 |
| Category | Data |
Timer component
Component to provide a single or regular event interval.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Timer.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Timer.fcsx
Detailed description
No detailed description exists yet for this component
Examples
An example showing how to use a timer component to send temperature and humidity JSON encoded data string via encoder JSON component
Macro reference
SetMacro
| SetMacro | |
| Sets the macro to be called when the timer event is triggered | |
| sMacro | |
| Name of the macro to be called | |
| Return | |
Start
| Start | |
| Start the timer | |
| iInterval | |
| Interval length (in ms) | |
| Return | |
Stop
| Stop | |
| Stop/cancel the timer | |
| Return | |
Property reference
| Properties | |
| Type | |
| Call macro | |
| Macro to call when the timer event is triggered | |