example 'meshtastic': small revisions & fixes

This commit is contained in:
pls.153 2024-03-02 11:20:33 +01:00
parent cac5219886
commit 44bd77cb08
6 changed files with 16 additions and 5 deletions

View file

@ -20,6 +20,9 @@ const UID BLE_ME::uuid_fromNum = UID(STR("{ed9da18c-a800-4f66-a670-aa7547e3445
#ifdef Q_OS_ANDROID
BLE_ME::BLE_ME(QtAndroidService* service) : BLE(uuid_service), emitter(service) {
service->ble = this;
// forward signals defined in class BLE
connect(this, &BLE::deviceDiscovered, emitter, &QtAndroidService::deviceDiscovered);
connect(this, &BLE::bleError, emitter, &QtAndroidService::bleError);
#else
BLE_ME::BLE_ME() : BLE(uuid_service), emitter(this) {
#endif