 | ZWManagerAddDriver Method (String, ZWControllerInterface) |
Creates a new driver for a Z-Wave controller.
Namespace:
OpenZWave
Assembly:
OpenZWave (in OpenZWave.dll) Version: 255.255.255.255
Syntaxpublic bool AddDriver(
string serialPortName,
ZWControllerInterface interfaceType
)
Public Function AddDriver (
serialPortName As String,
interfaceType As ZWControllerInterface
) As Boolean
public:
virtual bool AddDriver(
[InAttribute] String^ serialPortName,
[InAttribute] ZWControllerInterface interfaceType
) sealed
Parameters
- serialPortName
- Type: SystemString
The string used to open the serial port, for example "\\.\COM3". - interfaceType
- Type: OpenZWaveZWControllerInterface
Specifies whether this is a serial or HID interface (default is serial).
Return Value
Type:
BooleanTrue if a new driver was created, false if a driver for the controller already exists.
Remarks
This method creates a Driver object for handling communications with a single Z-Wave controller. In the background, the
driver first tries to read configuration data saved during a previous run. It then queries the controller directly for any
missing information, and a refresh of the list of nodes that it controls. Once this information
has been received, a DriverReady notification callback is sent, containing the Home ID of the controller. This Home ID is
required by most of the OpenZWave Manager class methods.
See AlsoReference
[!:Create]
[!:Get]