我使用 swift 编程已经有一段时间了,但我对 Core Bluetooth 完全陌生。有没有办法使用 Core Bluetooth 将原始数据(整数、字符)从一台 iOS 设备发送到另一台?
提前致谢
最佳答案
是的。 您需要制作一个外围设备和第二个中央设备(或两者)。 在外围设备中,您需要发布数据(peripheralManager.startAdvertising),而在中央设备中,您需要通过特性获取它。 您可以在 https://developer.apple.com/documentation/corebluetooth 中阅读所有相关内容
关于ios - 核心蓝牙 : Send data between 2 iOS devices,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43427590/