BabyBluetooth icon indicating copy to clipboard operation
BabyBluetooth copied to clipboard

连接问题、实时获取问题

Open luobingbing0207 opened this issue 7 years ago • 1 comments

您好,作者大大,请问我的蓝牙设备,现在有2个服务,总计3个特征,那么问题来了,能同时监控这2个服务、3个特征么???。。还有为神马我只能手动获取到设备的数据呢,而不能实时获取设备数据,难道要自己写个定时器定时去手动获取么??

luobingbing0207 avatar Dec 29 '17 09:12 luobingbing0207

订阅服务就可以了, 有更新的时候系统会调用更新的代理方法, 通过回调的 characteristic 的 uuid 来区分具体服务. FYI:setNotifyValue:forCharacteristic:

AlainHsu avatar Mar 05 '18 10:03 AlainHsu