25d14c7c15
* Refactored the BACnet/SC datalink initialization order by moving certificate file checks and hub connection registration to occur after datalink initialization * Replaced stdlib rand() with platform-specific cryptographically secure random functions (RtlGenRandom for Windows, getrandom for Linux, arc4random_buf for BSD) to generate UUID and VMAC addresses, preventing duplicates that broke connections * Enabled conditional debug output in BACnet/SC components when BUILD=debug is specified
BACnet/SC Hub
Test BACnet/SC using the following steps:
-
Build all the apps and the hub for the BACnet/SC datalink:
make clean bsc sc-hub -
Run the BACnet/SC hub application:
cd bin ./bsc-server.sh ./bacschub 1 Hubster -
Run BACnet/SC server application:
cd bin ./bsc-client.sh ./bacserv 123 Francine -
Run any BACnet/SC client:
cd bin ./bsc-client.sh ./bacwi ./bacepics 1 ./bacepics 123