主要由于keepalive没设定造成 将连接语句client = MQTTClient(“xxx”,“client ip”)改为client = MQTTClient(“xxx”,“client ip”,keepalive=30)