Datalogic .NET SDK

BtEnable (Method)

 

Syntax

 

   public static Boolean BtEnable(Boolean On);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Turns on or off the Bluetooth radio.

 

 

Parameters Table

 

Type

Parameter

Description

[out]

Boolean

On

Passing True the Bluetooth radio will turn on. Otherwise Bluetooth radio will turn off.

 

 

 

 

[returns]

Boolean

 

TRUE on success

[on error]

FALSE

 

-

 

 

Example

 

        private void btnBTStart_Click(object sender, EventArgs e)

        {

            bool b = false;

 

            b = Device.BtInitialize();

 

            b = Device.BtEnable( true );

        }

        

 

 

Remarks

Remember to initialize the Bluetooth device before enable/disable it, and remember to Terminate it after the use.

 

 

See Also

Device.BtTerminate (Method), Device.BtInitialize (Method),  Example #034.

 

Copyright © Datalogic ADC. All Right Reserved