ZwDriver class
ZwDriver handles low level communication with the Z-Wave controller. Low level ACK (acknowledge) and NAK (corrupt message) responses are automatically sent and higher level message data is forwarded to the provided request/response handlers.
Properties
- defaultResponseHandler ↔ MessageHandler?
-
defaultResponseHandler processes responses
sent from the Z-Wave controller or from physical devices in the network.
If a response handler is specified when send is called, then
that handler (rather than this handler) will receive the next response.
This handler will receive any subsequent responses.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- requestHandler ↔ MessageHandler?
-
requestHandler processes requests
sent from the Z-Wave controller or from physical devices in the network.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration
-
final
Methods
-
handleAck(
) → void - Process an ACK (acknowledgement) from the Z-Wave controller indicating that the message was received
-
handleCan(
) → void - Process an CAN (cancel) from the Z-Wave controller indicating that the message was received but declined
-
handleDataFrame(
List< int> dataFrame) → void - Process a data frame from the Z-Wave controller
-
handleInvalidDataFrame(
) → void - Process an invalid or corrupt data frame from the Z-Wave controller
-
handleNak(
) → void - Process an NAK (negative acknowledgement) from the Z-Wave controller indicating that the message was corrupted
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
List< int> data, {Completer<List< ? responseCompleter, Duration? responseTimeout}) → Future<int> >void> - Send the specified message and return a Future that completes when the message is acknowledged or completes with an error if the message is canceled or corrupted.
-
sendAck(
) → void -
sendNak(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited