Questions tagged [iobluetooth]
The iobluetooth tag has no usage guidance.
iobluetooth
82
questions
0
votes
0
answers
30
views
macOS Battery Level for Apple Powerbeats Pro
I am working on a macOS app for monitoring battery levels of BlueTooth devices. All of the Apple devices I can get via ioReg and all of the BTLe devices I can use 180F and 2A19, but the Powerbeats Pro ...
0
votes
0
answers
35
views
publishedServiceRecordWithDictionary returns nil - macOS IOBluetooth
Working on implementing the A2DP Sink profile on macOS based off of this proof of concept.
Problem is I cannot seem to get the service registered on the local SDP server. Specifically:
- (void)load
{
...
0
votes
0
answers
55
views
IObluetooth mac os doesn't sending commands to device. (swift, vapor, bluetooth, serialport)
We have been using Golang for a long time to communicate via Bluetooth with one of the devices. we use the go.bug.st/serial library.Now I decided to try something native from the Mac. I found Vapor as ...
0
votes
1
answer
1k
views
Scan Nearby Bluetooth Devices Swift 5 - macOS
All,
I am looking to write some code to work with bluetooth. Initially I want to scan and get a list of nearby devices. I would then filter that by device type to only allow a user to connect certain ...
4
votes
1
answer
793
views
Cannot create a Bluetooth SPP connection on MacOS Monterey
Since upgrading to macOS Monterey, we have been unable to create a Bluetooth SPP connection to any hardware device.
The SPP service does not appear to be supported. When listing the services for the ...
3
votes
1
answer
948
views
What is the Difference between Core Bluetooth and IOBluetooth
This question has already been asked on Stack Overflow in 2013, but it is in need of an update. Functionality of Core Bluetooth for macOS was changed to bring it more in line with iOS since macOS 10....
0
votes
1
answer
326
views
Issues with IOBluetooth
I have a few questions regarding IOBluetooth framework which are listed below.
I currently have one MacBook Pro (13-inch, 2018) running Big Sur v11.1 and when I call inquiries and attempt to find ...
1
vote
1
answer
326
views
IOBluetoothDevice register doesn't work with forConnectNotifications
I have a Bluetooth device already selected and I am trying to register connect and disconnect notifications
func selectDevice() {
var promptRes = Int32?((deviceSelector?.runModal())!)
if ...
7
votes
1
answer
1k
views
How to get a list of BLE devices through IOBluetooth framework (macOS)
I have a problem listing all of the devices through IOBluetooth framework. Is there a way to get not only classic, but also BLE devices?
My code is
let ioBluetoothManager = ...
0
votes
2
answers
832
views
Get IOBluetoothDevice * from CBPeripheral * (Mac OS X)
I am wondering if there is a way i can get an IOBluetoothDevice * object from a CBPeripheral * object because I am making an advanced bluetooth controller framework (Its going to be based on ...
3
votes
0
answers
311
views
IOBluetooth Mouse Battery Level
Is it possible to read battery levels from a Bluetooth mouse (Magic Mouse 2 in this case), using the IOBluetooth framework?
Would this require writing a request as data through a L2CAP or RFCOMM ...
1
vote
0
answers
393
views
Swift MacOS IOBluetooth unable to connect to daemon
My problem is that on line 35, where I start IOBluetoothDeviceInquiry, it gives me the following error: Failed to create connection to the daemon: Distributed objects message send timed out Here is my ...
1
vote
1
answer
175
views
Segmentation fault when flag `-fobjc-arc` is used
I am using the IOBluetooth framework on Mac OSX to do device discovery. I have added some NSLog() inside the callback functions, so I know the progress.
If I compile the code with gcc on command ...
1
vote
1
answer
691
views
IOBluetooth register for channel open notification not firing when channel is opened
I'm working on a project that requires bluetooth 2.1 and I am trying to make a testing client to connect to the hardware.
So I have been pouring through the 'docs' for IOBluetooth and have managed ...
12
votes
1
answer
7k
views
Nearby Bluetooth devices using Swift 3.0
I'm looking for a way to programmatically list any nearby Bluetooth devices (discoverable) that my device finds. I have not been able to find any information or tutorials regarding performing this ...