 | ZWManagerAddDriver Method (String) |
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
)
Public Function AddDriver (
serialPortName As String
) As Boolean
public:
virtual bool AddDriver(
[InAttribute] String^ serialPortName
) sealed
Parameters
- serialPortName
- Type: SystemString
The string used to open the serial port, for example "\\.\COM3".
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenZWave.ZWManager.AddDriver(System.String)"]
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]