BACnetStack_SetBACnetSCHubFunctionConfig
bool BACnetStack_SetBACnetSCHubFunctionConfig( const uint32_t deviceInstance, const uint32_t scPortInstance, const bool enabled, const uint16_t maxConnections);Configures this device’s BACnet/SC hub function (the hub role itself, if this device is acting as a BACnet/SC hub rather than only a node).
Cl. 12.56.91 makes SC_Hub_Function_Accept_URIs a BACnetARRAY of CharacterString (a device with multiple interfaces can advertise every URI a peer might use to reach it), so this function takes no accept URI. Configure the accept URI list separately with BACnetStack_AddBACnetSCAcceptUri() (connectionRole=0) BEFORE enabling - at least one is required when enabled=true.
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
deviceInstance, scPortInstance |
in | The device and Network Port object representing this SC connection. |
enabled |
in | Whether the hub function is enabled. |
maxConnections |
in | The maximum number of simultaneous node connections this hub accepts. |
Returns
Section titled “Returns”True if successfully configured, otherwise false.
Topic: BACnet/SC. Declared in CASBACnetStackDLL.h.