eclipse-paho / paho.mqtt.android

MQTT Android
Other
2.94k stars 891 forks source link

android client 一分钟断线一次 #342

Closed zwonb closed 5 years ago

zwonb commented 5 years ago

Please fill out the form below before submitting, thank you!

Android API Version Bug Seen on:mqttv3:1.1.0,service:1.1.1

Android Version Bug Seen on:all

Please also check that if you have found the bug in the Release version (1.1.1) that you check that it also exists in the Snapshot (1.1.2-SNAPSHOT) before raising a bug.

image 一分钟断线一次,回调这个函数,我进行了重新连接!请问是什么问题导致的?

Description of Bug:

E.g. Steps to re-create, how often does this happen etc..

Console Log output (if available):

zwonb commented 5 years ago

image

这是掉线后的调试信息

zwonb commented 5 years ago

image

这是初始化client,client id 不会重复的!

byron-xie commented 5 years ago

解决了吗

zwonb commented 5 years ago

解决了吗

解决了,要给服务器发心跳包