Add new bluetooth class as model for scanning. Add UI to show scanned devices on top of page.

This commit is contained in:
2019-11-07 23:05:56 -05:00
parent 62bf803c71
commit e0689cc7e8
7 changed files with 231 additions and 11 deletions

View File

@@ -3,6 +3,7 @@
#include <QtQml>
#include <QUrl>
#include "miflora/miflora.h"
#include "miflora/bluetoothdevices.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
{
@@ -13,6 +14,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QCoreApplication::setApplicationName("qiflora");
QQmlApplicationEngine engine;
qmlRegisterType<BluetoothDevices>();
qmlRegisterType<MiFlora>("org.eyecreate.qiflora",1,0,"QiFlora");
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));