蓝牙学习

iOS蓝牙 + Protobuf 相关开发经验总结

2020-09-02  本文已影响0人  SKCongroo

随便写一些开发中遇到的问题和解决方法。

蓝牙相关

扫描相关

NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], CBCentralManagerScanOptionAllowDuplicatesKey, nil];
[_centerManager scanForPeripheralsWithServices:nil options:options];

回调

Protobuf

其他建议

总结

Protobuf的特性对蓝牙这种小数据量传输的场景有很好的便利性,而且数据安全性很高,数据包也小得多,是一个很好的技术协作场景。

上一篇下一篇

猜你喜欢

热点阅读