Skip to content
Version 6.1.0
Contact Us

BACnetStack_AddDeviceToVirtualNetwork

bool BACnetStack_AddDeviceToVirtualNetwork(const uint32_t deviceInstance, const uint16_t network);

Adds a virtual device on a virtual network.

Adds a virtual device. Must be called after calling AddDevice. The first AddDevice will add the device that will act as the Router to the virtual networks and devices.

Parameter Direction Description
deviceInstance in The device instance of the virtual BACnet device being added.
network in The virtual network to assign this device to.

True if successful, otherwise false

Topic: Routing and virtual networks. Declared in CASBACnetStackDLL.h.