public void LoadFirmware() { var firmwares = new Firmware.FirmwareProvider(); using (var txer = new Messages.MessageTransceiver(new PortProvider(_config.DeviceIds.Cast<Config.DeviceConfiguration>()))) { txer.Tranceive(new Messages.InitialMessage()); txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AmssFirmware)); txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AmssFirmware)); txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AppsFirmware)); txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AppsFirmware)); txer.Tranceive(new Messages.ConclusionMessage()); } }
public void LoadFirmware() { var firmwares = new Firmware.FirmwareProvider(); using (var txer = new Messages.MessageTransceiver(new PortProvider(_config.DeviceIds.Cast <Config.DeviceConfiguration>()))) { txer.Tranceive(new Messages.InitialMessage()); txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AmssFirmware)); txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AmssFirmware)); txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AppsFirmware)); txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AppsFirmware)); txer.Tranceive(new Messages.ConclusionMessage()); } }