core-bluetooth

iOS Core Bluetooth : Getting API MISUSE Warning

时间秒杀一切 提交于 2019-11-30 16:47:34
I am writing a test app in iOS 7 with the Core Bluetooth API. When I am testing the application I found that I am getting the following warning message: TestBluetooth[626:60b] CoreBluetooth[API MISUSE] can only accept commands while in the powered on state Later I debugged app and found that, warning is coming from the following line of code: [manager scanForPeripheralsWithServices:array options:scanOptions]; So can anyone please tell me why I am getting this message in the console? There are bluetooth 4.0 android devices around me, but this app is not discovering them as peripheral device. So

Can you pair a bluetooth LE device in an iOS app

半腔热情 提交于 2019-11-30 16:01:59
问题 Can you pair a bluetooth LE device in an iOS app, i.e. not via Settings. Trying to make it easier on the user to pair with a specific device. If so how? 回答1: You don't pair Bluetooth LE devices through system settings. Generally you don't pair with Bluetooth Low Energy devices at all. The only time that pairing is required is when the device has an attribute that is marked as encryption required - attempting to read this attribute will trigger a pairing process, but before you can read you

Can you pair a bluetooth LE device in an iOS app

最后都变了- 提交于 2019-11-30 15:52:51
Can you pair a bluetooth LE device in an iOS app, i.e. not via Settings. Trying to make it easier on the user to pair with a specific device. If so how? You don't pair Bluetooth LE devices through system settings. Generally you don't pair with Bluetooth Low Energy devices at all. The only time that pairing is required is when the device has an attribute that is marked as encryption required - attempting to read this attribute will trigger a pairing process, but before you can read you need to discover and connect to the device. Discovery and connection is handled by the Core-Bluetooth

CoreBluetooth didDiscoverPeripheral not being called in Swift

限于喜欢 提交于 2019-11-30 15:16:59
问题 I am 99% sure I followed the instructions to setup CoreBluetooth correctly. No matter what I do, when I run this app on my iPad mini, the Bluetooth is saying its on. It's saying it is scanning for devices, but it is absolutely not finding any devices. If I go to the Bluetooth menu on the device I do see other devices being discovered. I initialize the CBCentralManager . I setup centralManagerDidUpdateState . When that is sure the bluetooth is ready it calls centralManager

iOS6: CBPeripheral is being dealloc'ed while connecting

瘦欲@ 提交于 2019-11-30 14:46:12
问题 I'm trying to connect to a bluetooth BTLE device. I have no problem discovering the peripheral. However, when I attempt to connect to the peripheral, I received the following warning. 2013-04-05 22:10:36.110 CoreBluetooth[WARNING] 7DA9E322-D710-081B-4A9D-526DE546B13C, Name = "Find My Car Smarter", IsConnected = NO> is being dealloc'ed while connecting Furthermore, neither of the relevant delegate methods are called: didConnectPeripheral: didFailToConnectPeripheral: I've been struggling with

CoreBluetooth didDiscoverPeripheral not being called in Swift

霸气de小男生 提交于 2019-11-30 14:00:03
I am 99% sure I followed the instructions to setup CoreBluetooth correctly. No matter what I do, when I run this app on my iPad mini, the Bluetooth is saying its on. It's saying it is scanning for devices, but it is absolutely not finding any devices. If I go to the Bluetooth menu on the device I do see other devices being discovered. I initialize the CBCentralManager . I setup centralManagerDidUpdateState . When that is sure the bluetooth is ready it calls centralManager.scanForPeripheralsWithServices . All this is happening correctly. But my delegate function centralManager(central:

Is it possible to connect iOS and android device using Bluetooth?

自作多情 提交于 2019-11-30 13:34:34
问题 I have to make an application to pair an iOS and Android device (iPhone 5, iPad 3, Galaxy S3, Nexus 7 they all use Bluetooth 4.0) and then send data to each other. Is this amount of data limited ? Can we send something like a photo or a PDF? I've already done the pairing and sending data between 2 iOS devices using CoreBluetooth and the sample code from Apple BTLE_Transfer Of what i understood, a Peripheral (Server) can Advertise to a Central (Client). This central is scanning around itself,

How to read information from core bluetooth device

徘徊边缘 提交于 2019-11-30 12:26:29
I am working on an iOS core Bluetooth application, I am able to connect with the BLE device using iPad3. I am able to reach to the block didDiscoverServices , but unable to proceed from here. My questions are ; How can I read characteristic from Bluetooth device? How can I read other information of Bluetooth device? Help me on this or provide any suggestion. Thanks Wilhelmsen for reply. I got the following from the mentioned block : [0] - Service : <CBConcreteService: 0x1769a0> UUID: Generic Attribute Profile [1] - Service : <CBConcreteService: 0x174470> UUID: Generic Access Profile [2] -

iOS6: CBPeripheral is being dealloc'ed while connecting

纵饮孤独 提交于 2019-11-30 11:41:21
I'm trying to connect to a bluetooth BTLE device. I have no problem discovering the peripheral. However, when I attempt to connect to the peripheral, I received the following warning. 2013-04-05 22:10:36.110 CoreBluetooth[WARNING] 7DA9E322-D710-081B-4A9D-526DE546B13C, Name = "Find My Car Smarter", IsConnected = NO> is being dealloc'ed while connecting Furthermore, neither of the relevant delegate methods are called: didConnectPeripheral: didFailToConnectPeripheral: I've been struggling with this for hours... Please help. Short answer: You need to retain the peripheral. Long explanation: Core

Read data from BLE device

那年仲夏 提交于 2019-11-30 10:16:57
问题 I am trying to read data from a bluetooth device (BR-LE4.0-S2). I was able to connect BLE device, but not able to read data from it.I don't have any specification about BLE services and it's characteristics. Here what my issue is - (void)peripheral:didUpdateValueForCharacteristic:error: not getting called. I followed tutorial "https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/PerformingCommonCentralRoleTasks