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
MQTT Client -> Exception 9 when reconnecting #1
Comments
Just to understand a few questions:
Thanks, |
I'm using lib only as client and this happens on client. mqtt_pub.ino from origial mqtt-client lib, only wifi user/pass and mqtt server IP changed. but without setUserPwd I got:
|
Hi Martin Thanks for the hard work done with the Andriod library. When running the code on ESP8266 I intermittently get a broker error message when I disconnect a client from the broker: (connect and then a few seconds later disconnect the client). Fatal exception 9(LoadStoreAlignmentCause): Exception (9): With debug activated and a client disconnect requested, I noticed that during the client diconnect sequence a espconn_delete(mqttClientCon->pCon) and when the MQTT_ServerTask is executed a espconn_disconnect(clientcon->pCon) is called. The Fatal exception happens when espconn_disconnect(clientcon->pCon) is executed. Would it not be better to prevent a espconn_delete to be followed by espconn_disconnect by changing ClientCon->connState in MQTT_server_deleteClientCon. bool ICACHE_FLASH_ATTR MQTT_server_deleteClientCon(MQTT_ClientCon * mqttClientCon) {
Your feedback plse. Regards |
My mqtt broker has set user and password, I forgot about it and I tried the @i-n-g-o mqtt_pub example as is without setUserPwd...
in setup mqtt try connect to broker without success (because user/pass not set)
then jump to myDisconnectedCb and causer error on second myMqtt.connect():
esp exception decoder show:
when I set user/pass everything works fine
The text was updated successfully, but these errors were encountered: