Connection Interval Core Bluetooth

后端 未结 3 1622
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-21 01:28

Is there any way to change connection interval through Core Bluetooth? I am transferring chunks of data to Peripheral and it\'s talking much time to transfer the data. I want to

3条回答
  •  清歌不尽
    2021-01-21 01:41

    I believe the way to do this is to use a Timer.

    Refer to: How Do I write a Timer in Objective-C?

    For now, that is how I represent the connection interval. You can use this within your callbacks in the function: - (void)peripheral:(CBPeripheral *)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error

    Also, judging from the Corebluetooth framework, currently there is no way of updating the connection interval from the Central side.

    However, I am interested in how your information for the connection interval, henrik.

提交回复
热议问题