Link bluetooth.

Implement class that talks to BLE miflora devices.
Have UI show current values from new class.
This commit is contained in:
2019-11-07 19:14:58 -05:00
parent 0f63b81cb7
commit 62bf803c71
5 changed files with 246 additions and 3 deletions

View File

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