引入vertx-mqtt <dependency><groupId>io.vertx</groupId><artifactId>vertx-mqtt</artifactId><version>3.8.2</version></dependency> intcount=1000;Vertxvertx=Vertx.vertx();MqttClientclient=MqttClient.create(vertx,newMqttClientOptions().setMaxInflightQueue(count)); client.connect(1883,"192.168....