mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-24 13:30:45 -08:00
example 'meshtastic': add android background service for BLE
This commit is contained in:
parent
6cb2a40683
commit
fdefd8d912
17 changed files with 504 additions and 67 deletions
16
examples/meshtastic/cpp/android_service/main.cpp
Normal file
16
examples/meshtastic/cpp/android_service/main.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include "qtandroidservice_ro.h"
|
||||
#include "../ble/ble_meshtastic.h"
|
||||
#include <QAndroidService>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
QAndroidService app(argc, argv);
|
||||
|
||||
QRemoteObjectHost srcNode(QUrl(QStringLiteral("local:replica")));
|
||||
QtAndroidService qtAndroidService;
|
||||
srcNode.enableRemoting(&qtAndroidService);
|
||||
|
||||
BLE_ME ble(&qtAndroidService);
|
||||
qtAndroidService.ble = &ble;
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue