Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            TxtWifiNtwrk.Text = WifiNetworkDefaultName;
            TxtWifiPwd.Text   = WifiPasswordDefaultName;

            var comPorts = ArduinoComm.GetComPorts();

            CmbComPorts.ItemsSource       = comPorts;
            CmbComPorts.SelectedValuePath = "Id";

            var arduinoPortId = ArduinoComm.AutodetectArduinoPortId();

            CmbComPorts.SelectedValue = arduinoPortId;
        }