[r919]: / branches / develop / mqttsparkplug / mqttsparkplug / Sparkplug™ MQTT edge and host / GlobalConstants / GC_sparkplug / svnobj  Maximize  Restore  History

Download this file

32 lines (31 with data), 5.4 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
{attribute 'qualified_only'}
{attribute 'hide'}
VAR_GLOBAL CONSTANT
    supported_string_lengths : DINT := 80;
    // ASCII
    WAIT    : STRING := '...';
    ONLINE  : STRING := 'ONLINE';
    OFFLINE : STRING := 'OFFLINE';
    // UTF-8 encoding
    SPARKPLUGA         : WSTRING := "spAv1.0/";
    SPARKPLUGB         : WSTRING := "spBv1.0/";
    TOPIC_FILTER_POUND : WSTRING := "/#";
    TOPIC_FILTER_PLUS  : WSTRING := "/+";
    NODE_DEATH_TOPIC   : WSTRING := "/NDEATH/";
    NODE_BIRTH_TOPIC   : WSTRING := "/NBIRTH/";
    NODE_DATA_TOPIC    : WSTRING := "/NDATA/";
    DEVICE_DEATH_TOPIC : WSTRING := "/DDEATH/";
    DEVICE_BIRTH_TOPIC : WSTRING := "/DBIRTH/";
    DEVICE_DATA_TOPIC  : WSTRING := "/DDATA/";
    NCMD               : WSTRING := "/NCMD/";
    DCMD               : WSTRING := "/DCMD/";
    STATE              : WSTRING := "STATE/";
    FW_SLASH           : WSTRING := "/";
    POUND              : WSTRING := "#";
    PLUS               : WSTRING := "+";
    UNDERSCORE         : WSTRING := "_";
    // Component ID's
    CMP_HOST : UDINT(4096..8191) := 16#0000_1001; // allowed between 16#0000_1000 and 16#0000_1FFF
{info 'Sparkplug
 and the Sparkplug
 logo are trademarks of the Eclipse Foundation