Bluetooth LE app, how to build it cross-plaftorm (iOS-Android)?

后端 未结 2 708
孤独总比滥情好
孤独总比滥情好 2021-02-08 12:26

I am working on an app that talks to a Bluetooth LE device. I would like some way to avoid developing it twice, for iOS and for Android. Is there a cross-platform app

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 12:49

    I am using Qt framework developing cross-platform apps with BLE support: http://doc.qt.io/qt-5/qtbluetooth-lowenergyscanner-example.html

    Currently the supported platforms are Andriod, iOS, OSX, Linux. Windows platform is said to support BLE in the forthcoming version Qt 5.6 (really looking forward to it). The BLE related classes are easy to use and Qt provided two sample projects in examples/documentation. The thing I am not sure about is getting Manufacturer Specific Data during a scan. Right now I am making a connection to the devices to get certain information which wouldn't be needed if I can read the Manufacturer Specific Data. Qt's BLE currently only support central role.

    Qt is based on C++, if that matters to you.

提交回复
热议问题