iobluetooth

Xcode build failure “Undefined symbols for architecture x86_64”

核能气质少年 提交于 2020-01-18 03:29:30
问题 An Xcode beginner's question: It is my first experience with Xcode 4.6.3. I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog. It builds with the following error: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_IOBluetoothDevice", referenced from: objc-class-ref in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I searched like crazy.

Xcode build failure “Undefined symbols for architecture x86_64”

醉酒当歌 提交于 2020-01-18 03:29:05
问题 An Xcode beginner's question: It is my first experience with Xcode 4.6.3. I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog. It builds with the following error: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_IOBluetoothDevice", referenced from: objc-class-ref in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I searched like crazy.

Does blued cache ATT values, and how to clear the cache?

╄→尐↘猪︶ㄣ 提交于 2019-12-28 19:02:12
问题 I am trying to find any workarounds for a Bluetooth LE bug on OSX. In particular, I want to know where OSX goes wrong in reading the Bluetooth LE GATT table. Thus, I am viewing the L2CAP packets in PacketLogger from Hardware IO Tools for XCode. When I use Bluetooth Explorer to connect to the Bluetooth LE device, I am expecting to see 3.4.4.9 Read By Group Type Request (uuid=0x2800 «Primary Service», startingHandle=0x0001, endingHandle=0xffff) to discover primary services (or Find By Type

IOBluetooth is returning no characteristics for some services

会有一股神秘感。 提交于 2019-12-23 03:07:12
问题 I’m trying to read characteristics from a service on a Bluetooth LE device. For some reason, for some characteristics, after calling -[CBPeripheralManager discoverCharacteristics:forService] , the peripheral:didDiscoverServices: callback is getting 0 characteristics. Are there any workarounds to allow me to read the characteristics of this service? When installing Hardware IO Tools for Xcode and running PacketLogger, it is apparent that the discoverServices call is causing a 0x08 Read By Type

List devices that are in range of Bluetooth device in Swift

♀尐吖头ヾ 提交于 2019-12-17 19:28:16
问题 I have the following code in a Xcode 6 playground: import Cocoa import IOBluetooth class BlueDelegate : IOBluetoothDeviceInquiryDelegate { func deviceInquiryComplete(sender: IOBluetoothDeviceInquiry, error: IOReturn, aborted: Bool) { aborted var devices = sender.foundDevices() for device : AnyObject in devices { if let thingy = device as? IOBluetoothDevice { thingy.getAddress() } } } } var inquiry = IOBluetoothDeviceInquiry(delegate: BlueDelegate()) inquiry.start() I'm just getting started

How to get the status of bluetooth (ON/OFF) in iphone programmatically

☆樱花仙子☆ 提交于 2019-12-17 03:08:33
问题 I trying to get the Status of iPhone/iPod Bluetooth that whether it is ON or OFF programmatically. Is it possible using some Apple API or third party API. 回答1: A little bit of research into Sam's answer that I thought I'd share You can do so without utilizing private API, but with a few caveats: It will only work on iOS 5.0+ It will only work on devices that support the bluetooth LE spec (iPhone 4S+, 5th Generation iPod+, iPad 3rd Generation+) Simply allocating the class will cause your

How to get the status of bluetooth (ON/OFF) in iphone programmatically

落爺英雄遲暮 提交于 2019-12-17 03:06:21
问题 I trying to get the Status of iPhone/iPod Bluetooth that whether it is ON or OFF programmatically. Is it possible using some Apple API or third party API. 回答1: A little bit of research into Sam's answer that I thought I'd share You can do so without utilizing private API, but with a few caveats: It will only work on iOS 5.0+ It will only work on devices that support the bluetooth LE spec (iPhone 4S+, 5th Generation iPod+, iPad 3rd Generation+) Simply allocating the class will cause your

Is it possible to “unpair” a Bluetooth device in Cocoa/ObjC?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 12:05:08
问题 I've paired an IOBluetoothDevice in my Mac/Cocoa app and would like to "unpair" it programmatically. That is, I would like to remove the device from the left pane of the Bluetooth section of System Preferences. I've seen [IOBluetoothDevice removeFromFavorites] , but that just removes the heart icon next to the "Favorite" attribute of the device -- the device is still listed in the left pane. Is this possible through Cocoa? In the above picture, I would like to programmatically remove "Apple

Is it possible (and does it make sense) to have a bluetooth iOT device in peripheral mode listening to both, BLE and Bluetooth Classic connections

夙愿已清 提交于 2019-12-10 11:40:45
问题 We are currently building a device that needs to be compatible with newer smartphones that run BLE but also be backwards compatible with Bluetooth 2.1. We are using a Mediatek Linkit ONE board for our prototype which can operate in dual mode. They have Bluetooth classes available, however it seems that I would have to pick between either running 1) Bluetooth Classic 2.1 OR 2) BLE The classes and docs are here: http://labs.mediatek.com/site/znch/developer_tools/mediatek_linkit/api_references

Is it possible (and does it make sense) to have a bluetooth iOT device in peripheral mode listening to both, BLE and Bluetooth Classic connections

喜夏-厌秋 提交于 2019-12-08 19:15:37
We are currently building a device that needs to be compatible with newer smartphones that run BLE but also be backwards compatible with Bluetooth 2.1. We are using a Mediatek Linkit ONE board for our prototype which can operate in dual mode. They have Bluetooth classes available, however it seems that I would have to pick between either running 1) Bluetooth Classic 2.1 OR 2) BLE The classes and docs are here: http://labs.mediatek.com/site/znch/developer_tools/mediatek_linkit/api_references/Lib_Bluetooth.gsp We basically want to make our device compatible with as many Smart phones as possible