Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsBlueToothRadioMBS.EnableDiscovery(radio as WindowsBlueToothRadioMBS = nil, enable as boolean = true) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Bluetooth MBS Bluetooth Plugin 18.3 No Yes No Yes, Windows only No
Function: Changes the discovery state of a local Bluetooth radio or radios.
Notes:
Enabled: Flag specifying whether discovery is to be enabled or disabled. Set to TRUE to enable discovery, set to FALSE to disable discovery.

Returns true if the discovery state was successfully changed.
Returns false if discovery state was not changed.

Use the IsDiscoverable function to determine the current state of a Bluetooth radio. Windows ensures that a discoverable system is connectable, and as such, the radio must allow incoming connections prior to making a radio discoverable. Failure to allow incoming connections results in the BluetoothEnableDiscovery function call failing.
When EnableDiscovery changes the discovery state, the new state is valid for the lifetime of the calling application. Additionally, if a Bluetooth radio previously made discoverable with this function is disabled and re-enabled via the application, discoverability will not persist. Once the calling application terminates, the discovery state of the specified Bluetooth radio reverts to the state it was in before EnableDiscovery was called.

Feedback, Comments & Corrections

WindowsBlueToothRadioMBS.EnableIncomingConnections(radio as WindowsBlueToothRadioMBS = nil, enable as boolean = true) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Bluetooth MBS Bluetooth Plugin 18.3 No Yes No Yes, Windows only No
Function: Modifies whether a local Bluetooth radio accepts incoming connections.
Notes:
Flag specifying whether incoming connection acceptance is to be enabled or disabled. Set to true to enable incoming connections, set to false to disable incoming connections.

Returns true if the incoming connection state was successfully changed.
Returns false if incoming connection state was not changed.

A radio that is non-connectable is non-discoverable. The radio must be made non-discoverable prior to making a radio non-connectable. Failure to make a radio non-discoverable prior to making it non-connectable will result in failure of the EnableIncomingConnections function call.

Feedback, Comments & Corrections

WindowsBlueToothRadioMBS.FirstRadio as WindowsBlueToothRadioMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Bluetooth MBS Bluetooth Plugin 18.3 No Yes No Yes, Windows only No
Function: Queries first radio.
Notes: Lasterror is set.

Feedback, Comments & Corrections

WindowsBlueToothRadioMBS.Radios as WindowsBlueToothRadioMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Bluetooth MBS Bluetooth Plugin 18.3 No Yes No Yes, Windows only No
Function: Queries radios.
Notes: Lasterror is set.

Feedback, Comments & Corrections

WindowsBlueToothRadioMBS.RemoveDevice(Address as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Bluetooth MBS Bluetooth Plugin 18.3 No Yes No Yes, Windows only No
Function: Removes authentication between a Bluetooth device and the computer and clears cached service information for the device.
Notes: Lasterror is set.

Feedback, Comments & Corrections

WindowsBlueToothRadioMBS.UpdateDeviceRecord(Address as string, Name as String) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Bluetooth MBS Bluetooth Plugin 18.3 No Yes No Yes, Windows only No
Function: Updates the local computer cache about a Bluetooth device.
Notes:
Lasterror is set.

When updating a Bluetooth device record, please pass:

Address: Must be a previously found radio address.
Name: Must contain the new name to be stored.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Bluetooth Plugin.




Links
MBS Xojo PDF Plugins