Platforms to show: All Mac Windows Linux Cross-Platform

/Bluetooth/Mac Bluetooth/CoreBluetooth Devices
Function:
Required plugins for this example: MBS Bluetooth Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Bluetooth/Mac Bluetooth/CoreBluetooth Devices
This example is the version from Sun, 28th Jul 2018.
Project "CoreBluetooth Devices.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class MainWindow Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() cm = new MyCBCentralManagerMBS(nil) End EventHandler
Property CM As MyCBCentralManagerMBS
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
Class MyCBCentralManagerMBS Inherits CBCentralManagerMBS
EventHandler Sub DidDiscoverPeripheral(peripheral as CBPeripheralMBS, advertisementData as Dictionary, RSSI as String) dim l as listbox = MainWindow.List l.AddFolder peripheral.Name End EventHandler
EventHandler Sub DidUpdateState() dim state as integer = me.State Select case state case me.kStatePoweredOff case me.kStatePoweredOn me.scanForPeripheralsWithServices end Select End EventHandler
End Class
End Project

See also:

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS FileMaker Plugins