Skip to content

Exception and ESP32 restart due to missing check for connection in method "eQ3::onTick()" #3

@KlausMu

Description

@KlausMu

In file "lib/eQ3/eQ3.cpp" in method "bool eQ3::onTick()" I had to replace the block

        } else {
            sendNextFragment();
            lastActivity = time(NULL);
        }

with

        } else if (state.connectionState != DISCONNECTED) {
            sendNextFragment();
            lastActivity = time(NULL);
        }

otherwise I got exceptions and restarts of the ESP32.

Looking at the code it seems that the original author was aware that this code needed some more fine tuning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions