[r927]: / branches / develop / mqttsparkplug / mqttsparkplug / Sparkplug™ MQTT edge and host / Function Blocks / FB_Metric / FB_Metric / FB_AfterInit / svnobj  Maximize  Restore  History

Download this file

11 lines (10 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{attribute 'call_after_init'}
METHOD FB_AfterInit
VAR
IF THIS^.itfMetricOwner <> 0 THEN
    itfMetricOwner.RegisterMetric( THIS^ );
ELSIF THIS^.itfPrimaryHost <> 0 THEN
    IF __QUERYPOINTER( itfPrimaryHost, pPrimary ) THEN
        pPrimary^.RegisterMetric( THIS^ );
    END_IF
END_IF