Platforms to show: All Mac Windows Linux Cross-Platform
/Bluetooth/Windows Bluetooth/Windows BLE Devices
Required plugins for this example: MBS Bluetooth Plugin
Last modified Sun, 23th Jun 2018.
You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /Bluetooth/Windows Bluetooth/Windows BLE Devices
Download this example: Windows BLE Devices.zip
Project "Windows BLE Devices.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control Label1 Inherits Label
ControlInstance Label1 Inherits Label
End Control
Control TextField1 Inherits TextField
ControlInstance TextField1 Inherits TextField
End Control
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
Control FindButton Inherits PushButton
ControlInstance FindButton Inherits PushButton
EventHandler Sub Action()
// search for A5DCBF10-6530-11D2-901F-00C04FB951ED to find some USB devices.
dim paths() as String = WindowsBlueToothLEMBS.DevicePathsForClassGUID(TextField1.Text)
List.DeleteAllRows
if paths = nil then
list.AddRow "Failed."
else
for each path as string in paths
List.AddRow path
next
end if
End EventHandler
End Control
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project
See also:
- /Bluetooth/Windows Bluetooth/Bluetooth LE Heart Rate Win
- /Bluetooth/Windows Bluetooth/Windows Bluetooth
- /Bluetooth/Windows Bluetooth/Windows Bluetooth Services
- /Bluetooth/Windows Bluetooth/Windows Bluetooth Socket
Download this example: Windows BLE Devices.zip
The items on this page are in the following plugins: MBS Bluetooth Plugin.
