bluetooth-lowenergy

CoreBluetooth and audio stream

与世无争的帅哥 提交于 2021-02-19 06:33:12
问题 Can I transfer audio stream from one iOS device to other iOS device (for example from 4s to new iPad) using CoreBluetooth framework. Maybe BLE is too slow fo media streaming? 回答1: Bluetooth Low Energy (BLE) is not intended to stream data ! If you want to a stream you MUST use Bluetooth 2.X+EDR and an appropriate profile. Therefore, if you want to stream audio, you need a headset or A2DP profile. CoreBluetooth API give only access to BLE devices. 回答2: Audio streaming wont work any good, since

CoreBluetooth and audio stream

我的梦境 提交于 2021-02-19 06:32:08
问题 Can I transfer audio stream from one iOS device to other iOS device (for example from 4s to new iPad) using CoreBluetooth framework. Maybe BLE is too slow fo media streaming? 回答1: Bluetooth Low Energy (BLE) is not intended to stream data ! If you want to a stream you MUST use Bluetooth 2.X+EDR and an appropriate profile. Therefore, if you want to stream audio, you need a headset or A2DP profile. CoreBluetooth API give only access to BLE devices. 回答2: Audio streaming wont work any good, since

iOS central writing is not permitted

坚强是说给别人听的谎言 提交于 2021-02-19 06:08:52
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral:

iOS central writing is not permitted

和自甴很熟 提交于 2021-02-19 06:07:43
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral:

iOS central writing is not permitted

删除回忆录丶 提交于 2021-02-19 06:07:31
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral:

Scanning for beacons on iOS thru' web browser

十年热恋 提交于 2021-02-19 05:57:06
问题 Is there any way to make a web page scan for beacons on iOS ? I know that no iOS web browser supports Web Bluetooth at the present. I even could not find any information about if Chrome team is planning to add support for Web Bluetooth for Chrome on iOS. Is there any other way to scan for the beacons on iOS thru' web browsers (be it Safari or Chrome) ? Thanks 回答1: Unfortunately, Google can't add Web Bluetooth to Chrome for iOS without Apple's participation , and Apple has given no indication

How to extract temperature decimal value from a Bluetooth LE (SIG) hex value

扶醉桌前 提交于 2021-02-11 13:58:57
问题 I'm developing a xamarin android app to connect to a bluetooth low energy thermometer. I can already connect and read its value. My problem is that it's in hexadecimal format and i haven't found a way to extract its value in a decimal (celsius) format. Here's some sample readings: For 36.0 celsius i got 06-68-01-00-FF-E2-07-03-0A-15-34-00-02 For 36.2 celsius i got 06-6A-01-00-FF-E2-07-03-0A-14-14-00-02 For 36.8 celsius i got 06-70-01-00-FF-E2-07-03-0A-14-1B-00-02 For 34.6 celsius i got 06-5A

How to extract temperature decimal value from a Bluetooth LE (SIG) hex value

*爱你&永不变心* 提交于 2021-02-11 13:58:56
问题 I'm developing a xamarin android app to connect to a bluetooth low energy thermometer. I can already connect and read its value. My problem is that it's in hexadecimal format and i haven't found a way to extract its value in a decimal (celsius) format. Here's some sample readings: For 36.0 celsius i got 06-68-01-00-FF-E2-07-03-0A-15-34-00-02 For 36.2 celsius i got 06-6A-01-00-FF-E2-07-03-0A-14-14-00-02 For 36.8 celsius i got 06-70-01-00-FF-E2-07-03-0A-14-1B-00-02 For 34.6 celsius i got 06-5A

BLE temperature characteristic conversion

▼魔方 西西 提交于 2021-02-11 13:58:48
问题 I have a BLE app running on nrf51822 on Zephyr. Application is reading data from humidity and temperature sensor and exposes environmental sensing characteristic. Main exposed value is temperature (uuid:2A6E). I have trouble reading this data via Bluez on linux. With nrfConnect app everything works no problem - I connect to the device and can see temperature reading - somewhere between 20 and 26 degrees (assigned to said uuid). Via Bluez I can connect and read characteristic handle but the

BLE temperature characteristic conversion

帅比萌擦擦* 提交于 2021-02-11 13:57:16
问题 I have a BLE app running on nrf51822 on Zephyr. Application is reading data from humidity and temperature sensor and exposes environmental sensing characteristic. Main exposed value is temperature (uuid:2A6E). I have trouble reading this data via Bluez on linux. With nrfConnect app everything works no problem - I connect to the device and can see temperature reading - somewhere between 20 and 26 degrees (assigned to said uuid). Via Bluez I can connect and read characteristic handle but the