example 'meshtastic': add WiFi connection mode (currently tested on desktop only)

This commit is contained in:
pls.153 2024-05-02 19:42:26 +02:00
parent b8b34b36c4
commit f56a468983
14 changed files with 204 additions and 26 deletions

View file

@ -128,13 +128,13 @@ void BLE_ME::characteristicRead(const QLowEnergyCharacteristic&,
const QByteArray& data) {
if (data.isEmpty()) {
if (!con->backgroundMode) {
emitter->receivingDone();
static bool startup = true;
if (startup) {
con->sendSavedBytes(); // for eventual, saved but not sent packets
} else {
startup = false;
}
emitter->receivingDone();
}
} else {
if (con->backgroundMode) {