Skip to content
Version 6.1.0
Contact Us

BACnetStack_SetBACnetSCHubConnector

bool BACnetStack_SetBACnetSCHubConnector(
const uint8_t * vmac,
const uint8_t vmacLength,
const char * primaryHubUri,
const uint16_t primaryHubUriLength,
const char * failoverHubUri,
const uint16_t failoverHubUriLength);

Configures this device as a BACnet/SC hub connector (initiator), specifying its VMAC and the primary/failover hub URIs to connect to.

Parameter Direction Description
vmac, vmacLength in The 6-byte Virtual MAC address and its length. It is the port’s one VMAC, also presented by its hub function and on direct connections. NULL (or a length of 0) uses the default derived from the UUID; see BACnetStack_SetBACnetSCUuid().
primaryHubUri, primaryHubUriLength in The WebSocket URI of the primary hub.
failoverHubUri, failoverHubUriLength in The WebSocket URI of the failover hub (may be empty if none).

True if successfully configured, otherwise false.

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