example 'meshtastic': fix for BLE mode

This commit is contained in:
pls.153 2024-05-31 22:27:12 +02:00
parent 804aec5e90
commit fdf1db11f9
2 changed files with 5 additions and 4 deletions

View file

@ -16,12 +16,13 @@ const UID BLE_ME::uuid_fromNum = UID(STR("{ed9da18c-a800-4f66-a670-aa7547e3445
#ifdef Q_OS_ANDROID
BLE_ME::BLE_ME(QtAndroidService* service, Connection* _con) : BLE(uuid_service), emitter(service), con(_con) {
// forward signals defined in class BLE
connect(this, &BLE::deviceDiscovered, service, &QtAndroidService::deviceDiscovered);
connect(this, &BLE::bleError, service, &QtAndroidService::bleError);
#else
BLE_ME::BLE_ME(Connection* _con) : BLE(uuid_service), emitter(_con), con(_con) {
#endif
// forward signals defined in class BLE
connect(this, &BLE::deviceDiscovered, [&](const QString& name) { emitter->deviceDiscovered(name); });
connect(this, &BLE::bleError, [&]() { emitter->bleError(); });
connect(this, &BLE::mainServiceReady, this, &BLE_ME::ini);
connect(this, &BLE::deviceDisconnecting, this, &BLE_ME::disconnecting);
}

View file

@ -1,7 +1,7 @@
Unicode True
!include "MUI2.nsh"
Name "Mesh SMS"
OutFile "out\Setup-Mesh-SMS-0.9.2.exe"
OutFile "out\Setup-Mesh-SMS-0.9.3.exe"
InstallDir "$PROGRAMFILES\Mesh SMS"
Var STARTMENU_FOLDER
!define MUI_ABORTWARNING