HomeAutomation.DeviceNetwork.XBee.XBeeDeviceNetwork.ExecuteCommand C# (CSharp) Method

ExecuteCommand() public method

Sends a command to the XBee network.
public ExecuteCommand ( DeviceCommand command ) : void
command HomeAutomation.Core.DeviceCommand
return void
        public void ExecuteCommand(DeviceCommand command)
        {
            IXBeeDevice device = HomeAutomationSystem.DeviceRegistry.GetDeviceById(this, command.DeviceID) as IXBeeDevice;

            device?.ExecuteCommand(command);
        }