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.
Parameters
Section titled “Parameters”| 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. |
Returns
Section titled “Returns”True if successful, otherwise false
Topic: Routing and virtual networks. Declared in CASBACnetStackDLL.h.