core-bluetooth

Take pictures on other iOS devices using bluetooth

时光怂恿深爱的人放手 提交于 2019-12-02 08:20:43
I'd appreciate if someone with iOS bluetooth experience could show me how to take pictures on other iOS devices using bluetooth classes. This app lets users login/register and afterwards take and upload pics. http://www.raywenderlich.com/13511/how-to-create-an-app-like-instagram-with-a-web-service-backend-part-12 My goal is to, on tap of a user photo in the apps uiscrollview (which displays all uploaded photos), activate the snapStillImage method of AVFoundation below. //this code takes a picture - (void)snapStillImage //this takes a picture via [self snapStillImage] in viewDidLoad { dispatch

BT of Device “A” is auto disconnected with iPhone when Device “A” try to connect to Device “B”

孤者浪人 提交于 2019-12-02 08:02:45
My Device "A" is connected with my iPhone through BT and then by using nRF Connect BLE is also connected with Device "A". Through nRF Connect I am initiating the pillion connection between Device "A" and Device "B". So finally Pillion is activited and working properly for 10 Second and then Device "A" is disconnected with iPhone (Only BT). But Pillion is working fine. So the problem in why BT of Device "A" is disconnected when Device "A" try to connect with Device "B". In case of android this is working fine and Device "A" is Conncected with Andorid as well as Device "A" is connected with

Xcode 8.0 CBCentralManager Issue

两盒软妹~` 提交于 2019-12-02 08:01:23
I recently downloaded Xcode 8.0 and trying to run my previous project which uses core bluetooth. I have enabled Use Legacy Swift Language Version in build setting for compatibility in swift 2.3 everything works, but one Issue occured, func centralManagerDidUpdateState(central: CBCentralManager) { print("state is \(central.state.rawValue)") if (central.state == CBCentralManagerState.PoweredOn) { self.centralManager?.scanForPeripheralsWithServices([serviceUUID], options: nil) } else { // do something like alert the user that ble is not on } } previously central.state would return

How to decode the BLE advertisement data

☆樱花仙子☆ 提交于 2019-12-02 06:30:21
After scanning for the BLE device, I call the below method: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI and receive the following advertisement data as such: { kCBAdvDataManufacturerData = <ffff0215 cf6d4a0f ..... adf2f491 ... ... > } How can I decode the data and access its information? It seems that you are expecting this advertising packet to be decodable as iBeacon, but it is not. The full bytes listed in comments are: ff ff 02 15 e8 4a 40 af 7b 8d e8 8d 4a 7b

Detecting Bluetooth Enabled iPhone devices in IOS7 in IOS

谁说我不能喝 提交于 2019-12-02 05:33:23
问题 I am using Core Bluetooth Framework in my app. I know how to scan for peripherals and getting values from it.(like Heart Rate Monitor) But what I want is to retrieve the surrounding iPhone Devices list that supports BLE 4.0 and Bluetooth Enabled ones. I referred below links.. Uses IOBluetooth Framework Uses CoreBluetooth For Getting Peripherals not the Devices List - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:

iOS Apps that access the same BLE peripheral: How to distinguish?

我是研究僧i 提交于 2019-12-02 04:53:07
I have to following scenario: My app requests and receives data from an BLE peripheral (a glucometer). It it possible that the user has another app (from another developer) installed, that also communicates with the peripheral. I noticed that my app receives characteristic notifications for requests that where initiated by the other app. This causes my app to receive some data twice. Is there any way to distinguish between responses to my request and responses that are caused by another app? Or how can I handle it? While the stack obviously knows which app a certain (read, write) response

How can I increase the throughput of my BLE application?

梦想的初衷 提交于 2019-12-02 04:37:17
I have an android client that functions as a central and have an app on my MAC (peripheral) that this central connects to and sends data. At this point, I need to wait almost 100ms after I call writeCharacteristic(..) to receive the onCharacteristicWrite(..) callback. I am sending strings. If I send smaller strings, the throughput is great (understandably). When the string contains about 200 characters and I send 20 byte chunks, it takes almost a second before the entire string is seen at the peripheral. When I set the write type to NO_RESPONSE before writing the characteristic, I see no data

iOS CoreBluetooth state unsupported when using in iOS custom keyboard

好久不见. 提交于 2019-12-02 04:16:43
I want to use CoreBluetooth API within iOS keyboard extension (custom keyboard). However, the state for the CBCentralManager is unsupported. The device I use is iPhone 6. It works fine inside the container app. Does this mean that the CoreBluetooth API cannot be used inside the keyboard extension? You will need to set RequestOpenAccess to YES in your extension's plist under NSExtension > NSExtensionAttributes. Setting this to YES allows the extension to access network resources. Bluetooth is considered a network resource so you will get CBManagerStateUnsupported when RequestOpenAccess is NO.

Never seen anything in CoreBluetooth Framework about keeping the connection alive in the background

可紊 提交于 2019-12-02 03:06:17
问题 I am using the Xcode 5 and CoreBluetooth Framework. In plist file Required background modes -> App communicates using CoreBluetooth In Xcode 5 is a section for Background Modes in the your app's capabilities. Set Background Modes to ON and check "Uses Bluetooth LE accessories" Our app and BLE connection works fine while the app is running. The problem is when the phone goes to sleep or if the back goes to the background, the BLE connection stops working. I haven't seen anything in the

Detecting Bluetooth Enabled iPhone devices in IOS7 in IOS

夙愿已清 提交于 2019-12-02 02:54:15
I am using Core Bluetooth Framework in my app. I know how to scan for peripherals and getting values from it.(like Heart Rate Monitor) But what I want is to retrieve the surrounding iPhone Devices list that supports BLE 4.0 and Bluetooth Enabled ones. I referred below links.. Uses IOBluetooth Framework Uses CoreBluetooth For Getting Peripherals not the Devices List - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI { // I'm not sure how to make this work NSLog (@