IEC_BACNET_STACK_DATALINK_CONFIG (STRUCT)¶
TYPE IEC_BACNET_STACK_DATALINK_CONFIG : STRUCT
This defines the BACnet API datalink configuration structure.
It is used for supporting different datalinks available in the BACnet API. The first structure member needs to be filled with the BACNET_INIT_STRUCT_INIT_PATTERN contents to signal the API to use the undelying structure data and not to try to treat it as path to an ini-file wich is the alternative for configuration.
- InOut:
Name
Type
Comment
szInitPatternARRAY [0..15] OF IEC_BACNET_CHAR
Needs to be filled with the BACNET_INIT_STRUCT_INIT_PATTERN to work with inittialization structure instead of ini-file. Any other content will assume it is an ini-file path and not the structure and will surly not work as expected.n n To use the structure instead of ini-file: n strcpy(&dlstruct.szInitPattern[0], BACNET_INIT_STRUCT_INIT_PATTERN);n …n initstruct.procToStart = &dlstruct.szInitPattern[0];n …n n To use the ini-file: n initstruct.procToStart = “/path/to/any/ini-file.cfg”;n
fRoutingActiveFlag if set BACnet routing between specified datalinks is enabled.
linkCountThe number of datalinks configured.
pDataLinksPOINTER TO IEC_BACNET_STACK_DATALINK
The array with data for the configured datalinks.