BACnetServerInit (FUN)ΒΆ

FUNCTION BACnetServerInit : IEC_BACNET_STATUS

BACnet Server API for starting a BACnet server including a device. Within THIS function call the whole BACnet API process is started. Note: Only one (server) device per Server (per PLC) is allowed/possible.

InOut:

Scope

Name

Type

Comment

Return

BACnetServerInit

IEC_BACNET_STATUS

Input

pInit

POINTER TO IEC_BACNET_SRVR_INIT

A Pointer to a Server-Init-Structure containing initialization details

pDev

POINTER TO IEC_BACNET_TEMPLATE_DEVICE

A Pointer to a Device-Template for the device created along with the server.

reserved

POINTER TO BYTE

Reserved parameter. Should be set to 0.

Output

bDemoMode

BOOL

Returns whether the started BACnet-Server is in Demo-Mode or not.