example 'meshtastic': add android background service for BLE

This commit is contained in:
pls.153 2024-02-23 15:04:10 +01:00
parent 6cb2a40683
commit fdefd8d912
17 changed files with 504 additions and 67 deletions

View 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();
}