Skip to content
Version 6.1.0
Contact Us

BACnetStack_SetBACnetSCDirectConnectConfig

bool BACnetStack_SetBACnetSCDirectConnectConfig(
const uint32_t deviceInstance,
const uint32_t scPortInstance,
const bool initiateEnabled,
const bool acceptEnabled);

Configures this device’s BACnet/SC direct-connect capability (peer-to-peer SC connections that bypass the hub).

Cl. 12.56.96 makes SC_Direct_Connect_Accept_URIs a BACnetARRAY of CharacterString, so this function takes no accept URI. Configure the accept URI list separately with BACnetStack_AddBACnetSCAcceptUri() (connectionRole=1) BEFORE enabling acceptEnabled - at least one is required.

Parameter Direction Description
deviceInstance, scPortInstance in The device and Network Port object representing this SC connection.
initiateEnabled in Whether this device may initiate direct connections to peers.
acceptEnabled in Whether this device accepts incoming direct connections from peers.

True if successfully configured, otherwise false.

Topic: BACnet/SC. Declared in CASBACnetStackDLL.h.