Datalogic .NET SDK

Reset (Method)

 

Syntax

 

   public static bool Reset(BootType bootType);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Triggers a reset of the device.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

BootType

bootType

A Device.BootType value that specifies the type of reset to be performed.

 

 

 

 

[returns]

bool

 

The function will never returns.

[on error]

0

 

Zero is returned if bootType is not supported.

 

 

Example

 

        private void btnReset_Click(object sender, EventArgs e)

        {

            Device.BootType BootType = Device.BootType.Error;

            bool b;

 

            switch (comboBox1.SelectedIndex)

            {

                case 0: BootType = Device.BootType.Clean; break;

                case 1: BootType = Device.BootType.Cold; break;

                case 2: BootType = Device.BootType.Warm; break;

            }

 

            if (BootType != Device.BootType.Error)

            {

                MessageBox.Show("WARNING: this will

                                 restart the device.

                                 Some data will be lost.");

                b = Device.Reset(BootType);

            }

            else

            {

                MessageBox.Show("Reset Error");

            }

        }

 

 

 

See Also

Device.BootType (Enum), Example #039.

 

Copyright © Datalogic ADC. All Right Reserved