Failed to publish to MQTT in the [bean 'mqttOutbound'; defined in: 'class path resource [xxx]'; from source: 'xxx']; nested exception is Too many publishes in progress (32202)

修改maxInflight的默认值,例如将其修改为50

```
  MqttConnectOptions mqttConnectOptions = new MqttConnectOptions();
  mqttConnectOptions.setMaxInflight(50);
```

 

posted @ 2022-11-23 17:26  浅笑19  阅读(827)  评论(0编辑  收藏  举报