BACnetSetClientDeviceCommunication (FUN)ΒΆ

FUNCTION BACnetSetClientDeviceCommunication : IEC_BACNET_STATUS

Enables or disables communication in the advanced BACnet client API to devices.

The user application can enable or disable communication to registered devices. If communication is disabled to one or ALL devices, the connection state change callback will be called for all customers which have registerd that callback for the device.n If a new device is registered its communication state is initially enabled by default.

Return: IEC_BACNET_STATUS

InOut:

Scope

Name

Type

Comment

Return

BACnetSetClientDeviceCommunication

IEC_BACNET_STATUS

Input

devId

IEC_BACNET_INST_NUMBER

The device instance number for which communication needs to be changed. A value of 0xFFFFFFFF will change the state of ALL registered devices including the global communication enable / disable state.

dccValue

IEC_BACNET_DCC_VALUE

Specifies if communication should be enabled (::DCC_ENABLE) or disabled (::DCC_DISABLE or ::DCC_OFFLINE)