Esempio n. 1
0
        /// <summary>
        /// Sends an extended command off to do stuff.
        /// </summary>
        /// <param name="cmd">The command to send</param>
        /// <param name="command2">The second part of the command to update</param>
        /// <returns></returns>
        protected Messages.PowerLineModemMessage.MessageResponse SendExtendedCommand(InsteonPacket.ExtendedCommand cmd, byte command2, byte[] data)
        {
            InsteonPacket packet = new InsteonPacket(this.deviceId, cmd, command2, data);
            InsteonPacket response;

            return(coms.SendDirectInsteonPacket(packet, out response));
        }
Esempio n. 2
0
 /// <summary>
 /// Sends an extended command to the specified device.
 /// </summary>
 /// <param name="cmd"></param>
 /// <param name="data"></param>
 /// <returns></returns>
 protected Messages.PowerLineModemMessage.MessageResponse SendExtendedCommand(InsteonPacket.ExtendedCommand cmd, byte[] data)
 {
     return(this.SendExtendedCommand(cmd, 0, data));
 }