Exemple #1
0
 /// <summary>
 /// Sends <see cref="ZigBeeCommand"> command and uses the <see cref="ZigBeeTransactionMatcher"> to match the response.
 ///
 /// <param name="command">the <see cref="ZigBeeCommand"> to send</param>
 /// <param name="responseMatcher">the <see cref="ZigBeeTransactionMatcher"> used to match the response to the request</param>
 /// <returns>the <see cref="CommandResult"> future.</returns>
 /// </summary>
 public Task <CommandResult> SendTransaction(ZigBeeCommand command, IZigBeeTransactionMatcher responseMatcher)
 {
     command.DestinationAddress = GetEndpointAddress();
     return(Node.SendTransaction(command, responseMatcher));
 }
Exemple #2
0
 /// <summary>
 /// Constructor for timeout situations.
 /// </summary>
 public CommandResult()
 {
     this.Response = null;
 }
Exemple #3
0
 /// <summary>
 /// Sends ZigBee command without waiting for response.
 ///
 /// <param name="command">the <see cref="ZigBeeCommand"> to send</param>
 /// </summary>
 public void SendTransaction(ZigBeeCommand command)
 {
     command.DestinationAddress = GetEndpointAddress();
     Node.SendTransaction(command);
 }
Exemple #4
0
 /// <summary>
 /// Constructor which sets the received response command or null if timeout occurs.
 ///
 /// <param name="response">the response command.</param>
 /// </summary>
 public CommandResult(ZigBeeCommand response)
 {
     this.Response = response;
 }