Skip to content

re-queue on error sending #162

@st0ff3r

Description

@st0ff3r

espconn_send(client->pCon, dataBuffer, dataLen);

should be replaced with
if (espconn_send(client->pCon, dataBuffer, dataLen) != 0) {
// error sending, put it back into the queue again
if (QUEUE_Puts(&client->msgQueue, dataBuffer, dataLen) == -1) {
INFO("MQTT: Queue full\r\n");
}
}

and same in line 751

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