Beispiel #1
0
        private void btnUpFirm_Click(object sender, EventArgs e)
        {
            if (selected_device == null)
            {
                btnUpFirm.Enabled = false;
                return;
            }
            var data = new byte[4];
            var pos  = 0;

            Decoder.EncodeShort(ref data, ref pos, selected_device.Id);
            conexion.Command(conexion.transporteUDP, conexion.Destino, (byte)Command.Comandos.DeviceUpgradeFirmware, data);
        }