Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-queue on error sending #162

Open
st0ff3r opened this issue Apr 7, 2019 · 0 comments
Open

re-queue on error sending #162

st0ff3r opened this issue Apr 7, 2019 · 0 comments

Comments

@st0ff3r
Copy link
Contributor

st0ff3r commented Apr 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant