![]() ![]() ![]() ![]() Once you got the device ID and the port, you can use the WindowsBlueToothSocketMBS class to connect and transfer data. The WindowsBlueToothSelectDeviceDialogMBS class provides a dialog for the user to pick a device. On Windows, you can use WindowsBlueTooth classes to find devices and configure them. The IOBluetoothDeviceSelectorControllerMBS class provides a dialog or sheet to select a device while IOBluetoothServiceBrowserControllerMBS allows to pick a service on a device. To select a device, you can use the IOBluetoothUI classes. The IOBluetoothRFCOMMChannelMBS class allows you to do a serial port via bluetooth, which is enough for our devices here. This is only a subset from the Apple framework, but you can use IOBluetoothDeviceMBS class to control a device. For heart rate monitor, this class works well, too.įor the classic Bluetooth on MacOS, we got the IOBluetooth classes. ![]() Again, you can see which devices are there, connect and get/set values and get notified for updates. Next we got WindowsBlueToothLE classes for Windows. That works well with a heart monitor here to get the current BPM value to Xojo. You can enumerate devices, connect to them and read/write data and get notifications for updates. As we got two projects this year with need for Bluetooth, the classic one and the LE one, we decided it may be worth starting a Xojo plugin for Bluetooth.įor Bluetooth Low Energy, we got CoreBluetooth classes for MacOS. Over the years several Xojo developers asked for a Bluetooth plugin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |