[r825]: / branches / FeatureBranches / refactorpayload / SparkplugB / Function Blocks / FB_SparkplugBSimple / FB_SparkplugBSimple / DBIRTH / GetDeviceBirthCertificate / svnobj  Maximize  Restore  History

Download this file

42 lines (35 with data), 7.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SysTimeRtc.SysTimeRtcHighResGet( pTimestamp := _Timestamp );
        // Add all metrics which this device will EVER report on;
                                               SendList := AllMetricsList,
	
 The DBIRTH must include the a seq number in the payload and it must have a value of one greater than
	
 The DBIRTH must include a timestamp denoting the DateTime the message was sent from the EoN node.
	The DBIRTH message can also include optional 
Device Control
 payload components. These are used by a
		o Used by backend application(s) to request a new DBIRTH from a device.
	
 Metric name: 
Device Control/Scan rate
	The DBIRTH message can also include optional 
Properties
 of a device. The following are examples of Property
	metrics.
	
 Metric name: 
Properties/Hardware Make
		o Used to transmit the hardware manufacturer of the device
	
 Metric name: 
Properties/Hardware Model
		o Used to transmit the hardware model of the device
	
	Metric name: 
Properties/FW
		o Used to transmit the firmware version of the device		
*)
METHOD GetDeviceBirthCertificate : ERROR
VAR_INPUT
    pEoN : POINTER TO FB_Edge;
END_VAR
VAR_IN_OUT
    AllMetricsList : List;
VAR
    CurSeqNum            : ULINT;
    InitEncoderErr       : ERROR;
    AddSimpleMetricErr   : ERROR;