Ejemplo n.º 1
0
        /// <summary>
        /// Example of updating a WASP-N over WiFi
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOta_Click(object sender, RoutedEventArgs e)
        {
            Progress.Background = Brushes.Yellow;
            Progress.Value      = 0;
            var progress = new Progress <ProgrammingProgress>(TesterProgrammingProgress);

            label.Content = "Programming...";
            _waspUT.UpdateFirmwareWithBundle(ManufacturingPackage.GetPackage("WASP-N 5.4.22-Firmware-R1.zip"), progress, new CompletionCallback(ProgrammingComplete), false, AccessMethod.WiFi);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Example of updating a WASP-N over USB
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonUsb_Click(object sender, RoutedEventArgs e)
        {
            Progress.Background = Brushes.Yellow;
            Progress.Value      = 0;
            var progress = new Progress <ProgrammingProgress>(TesterProgrammingProgress);

            label.Content = "Programming...";
            if (_waspUsb != null)
            {
                _waspUsb.GetUsbStream().CancelIo();
                _waspUsb.UpdateFirmwareWithBundle(ManufacturingPackage.GetPackage("WASP-N 5.4.17-Firmware-R1.zip"), progress, new CompletionCallback(ProgrammingComplete), false, AccessMethod.USB);
            }
        }