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

mqtt_stop() sometimes does not work. #21

Open
shirish47 opened this issue Sep 14, 2017 · 0 comments
Open

mqtt_stop() sometimes does not work. #21

shirish47 opened this issue Sep 14, 2017 · 0 comments

Comments

@shirish47
Copy link

I am trying to subscribe to topic but when it fails after some time I retry and if it fails I stop mqtt to disconnect from broker but it does not.

[MQTT INFO] Connected to MQTT broker, create sending thread before call connected callback
[MQTT INFO] mqtt_sending_task
I (39213) BYTELENSCLIENT: Connected to BROKER. 

[MQTT INFO] Queue subscribe, topic"topic_infoRX", id: 1
[MQTT INFO] Sending...38 bytes
[MQTT INFO] Queue subscribe, topic"topic_listRX", id: 2
[MQTT INFO] Sending...38 bytes
[MQTT INFO] mqtt_start_receive_schedule
I (41803) wifi: active cnt: 5
I (51803) wifi: send null to keep active
I (61803) wifi: send null to keep active
I (71803) wifi: send null to keep active
I (71873) GATTC_DEMO: Ticker: conn: 0 ,Noti: 0, scan: 0
I (71873) GATTC_DEMO: Ticker: wificon: 1, mqttcon: 1, mqttsub: 0
I (71873) GATTC_DEMO: Ticker: MQTT broker not Subscribed, retrying 1    <-- here I do mqtt_stop 
I (81803) wifi: send null to keep active
I (91803) wifi: send null to keep active
[MQTT INFO] Sending pingreq
I (101803) wifi: active cnt: 1
I (106873) GATTC_DEMO: Ticker: conn: 0 ,Noti: 0, scan: 0
I (106873) GATTC_DEMO: Ticker: wificon: 1, mqttcon: 0, mqttsub: 0
I (106873) GATTC_DEMO: Ticker: MQTT broker not Connected, retrying 2 <-- this is just flag MQTT not disconnect from broker.
I (111803) wifi: send null to keep active
I (121803) wifi: send null to keep active
I (131803) wifi: send null to keep active
I (141803) wifi: send null to keep active
I (141873) GATTC_DEMO: Ticker: conn: 0 ,Noti: 0, scan: 0
I (141873) GATTC_DEMO: Ticker: wificon: 1, mqttcon: 0, mqttsub: 0
I (141873) GATTC_DEMO: Ticker: MQTT broker not Connected, retrying 3
I (151813) wifi: send null to keep active
[MQTT INFO] Sending pingreq
I (161813) wifi: active cnt: 1

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