BACnetPDUtypeToText (FUN)

FUNCTION BACnetPDUtypeToText : STRING

This is a helper function which gets the name-description of the given BACnet PDU-Type.

InOut:

Scope

Name

Type

Comment

Return

BACnetPDUtypeToText

STRING

Input

pduType

IEC_BACNET_UNSIGNED

A value out of BACNET_PDU_TYPE or BACNET_NPDU_TYPE

network_msg

BYTE

network_msg = 0 -> type is a value out of ::BACNET_PDU_TYPE network_msg = 1 -> type is a value out of ::BACNET_NPDU_TYPE network_msg = 2 & type < 64 then a value out of ::BACNET_PDU_TYPE will be assumed network_msg = 2 & type >= 64 then a value out of ::BACNET_NPDU_TYPE will be assumed Invalid values will get empty string (“”)