Hi!
I'm using it with MQTT 5. When using options without specifying messageExpiryInterval, the value check in MqttPublishBuilder#messageExpiryInterval will fail.
java.lang.IllegalArgumentException: Message expiry interval must not exceed the value range of unsigned int [0, 4294967295], but was 9223372036854775807.
at com.hivemq.client.internal.util.Checks.unsignedInt(Checks.java:130)
at com.hivemq.client.internal.mqtt.message.publish.MqttPublishBuilder.messageExpiryInterval(MqttPublishBuilder.java:107)
at com.hivemq.client.internal.mqtt.message.publish.MqttPublishBuilder$Default.messageExpiryInterval(MqttPublishBuilder.java:193)
at de.smartsquare.starter.mqtt.Mqtt5Publisher.publish(MqttPublisher.kt:120)
......
Hi! I'm using it with MQTT 5. When using options without specifying
messageExpiryInterval
, the value check inMqttPublishBuilder#messageExpiryInterval
will fail.I can make a PR to fix it.