Codecore Logo
Quick Search
»
Advanced Search »

Bluetooth Proximity Driver

RSS
This device is used to identify and trigger events when a specified bluetooth device (such as a mobile phone) enters and exits range of the paired pc.

Pairing is the process of establishing a trust relationship between two devices. Pairing usually involves the exchange of a key pair - a pin-like series of digits that must be entered on both devices before the trust relationship is established. In order to use the Bluetooth Proximity driver, you must pair your bluetooth device (such as a phone) to your PC. You can start this from the PC, or from your phone. In Vista you can start the pairing process by opening the Bluetooth Devices utility and clicking the Add button on the Devices tab.

Manufacturer:

Primary Communications Port: BlueTooth


Configuration Settings

  • Bluetooth Device Name : The name of the bluetooth device as shown in your bluetooth software.

Events

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:

  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Device Is In Range

Occurs when the bluetooth device enters into range.

Whenever Filter:

none

EventArgs:

none

Device Is Out Of Range

Occurs when the bluetooth device exits out of range.

Whenever Filter:

none

EventArgs:

none

Instance Properties

IsDeviceInRange

Gets a value indicating if the bluetooth device is in range.

Accessibility : Read Only

Type: Boolean

LastEnteredRangeTime

Gets the date and time when the bluetooth device last entered into range.

Accessibility : Read Only

Type: DateTime

LastExitedRangeTime

Gets the date and time when the bluetooth device last exited out of range.

Accessibility : Read Only

Type: DateTime

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.