|
|
1、iOS由于苹果限制,不能像Android那样使用拓展,只能内置组件适配比如ble功能,经典蓝牙不支持。
我们正在努力将 BluetoothLE 扩展程序移植到 iOS 平台,使其成为一个组件。由于 Apple 对应用程序的限制,我们无法像在 Android 上那样使用扩展程序的方式。您使用的是哪种型号的 Arduino?这里的一个挑战是,出于功耗方面的考虑,Apple 对我们所说的“经典”蓝牙功能进行了一些限制。不过,他们允许使用低功耗蓝牙(Bluetooth Low Energy),我们计划全面支持这项功能。了解您使用的 Arduino 型号以及它使用的蓝牙版本有助于我们更好地判断您想要实现的功能是否可行。
We're working on porting the BluetoothLE extension as a component on iOS. Because of the constraints that Apple puts on apps, we cannot use the extensions approach like we do on Android.
Which particular model of Arduino are you using? One challenge here is that Apple has restricted access somewhat to what I would call "classic" Bluetooth due to energy consumption concerns. They do allow use of Bluetooth low energy without issue, which we do plan to implement full support for. Knowing what kind of Arduino you use and which Bluetooth version it uses might help us better understand whether what you want to do is feasible.
来源:https://community.appinventor.mit.edu/t/bluetooth-on-ios/32797/13
2、iOS虽然不支持拓展,但是部分比如ble拓展,兼容安卓模式的拓展导入,内部自动处理,除了少数内置拓展,其余的不支持。
目前你只需使用任何包含现有 BLE 扩展的项目即可。iOS 版本会自动处理。我目前只实现了一小部分功能,所以如果你有任何特定的应用程序希望我查看并改进其功能覆盖范围,请发送给我。[size=15.008px]For now you just need to use any project with the existing BLE extension. The iOS version will know what to do. I've only implemented a small subset of the functionality so far so if there is a specific app you'd like me to take a look at to improve the coverage please send it to me.
3、iOS的ble拓展和安卓不一样,iOS 使用由 iOS 设备和 BLE 设备组合生成的 UUID 来识别 BLE 设备,而不是像 Android 那样使用 MAC 地址
此外,iOS 与 Android 的一个重要区别在于,iOS 使用由 iOS 设备和 BLE 设备组合生成的 UUID 来识别 BLE 设备,而不是像 Android 那样使用 MAC 地址。因此,您不能指望任何通过 MAC 地址连接的模块在不同平台上都能以相同的方式工作。
Also, an important difference with iOS versus Android is that iOS identifies BLE devices using a UUID derived from a combination of the iOS device and the BLE device rather than using a MAC address like on Android. Therefore, you cannot expect that any of the blocks that connect via MAC address to work the same across platforms.
来源:https://community.appinventor.mi ... gy-for-ios/122340/3
|
|