Datalogic .NET SDK

BtStatus (Method)

 

Syntax

 

   public static Boolean BtStatus(out Boolean status);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Get current state of the Bluetooth radio.

 

 

Parameters Table

 

Type

Parameter

Description

[out]

Boolean

status

Returns the current state of the radio (TRUE is On and FALSE is off).

 

 

 

 

[returns]

Boolean

 

TRUE on success.

[on error]

FALSE

 

FALSE is returned to indicate failure.

 

 

Example

 

        private void btnBTOnOff_Click(object sender, EventArgs e)

        {

            bool b = false;

            bool IsEnabled = false;

 

            b = Device.BtInitialize();

 

            b = Device.BtStatus(out IsEnabled);

 

            b = Device.BtEnable(!IsEnabled);

        }

 

 

 

See Also

Example #034.

 

Copyright © Datalogic ADC. All Right Reserved