diff --git a/src/zutil/net/mqtt/MqttBroker.java b/src/zutil/net/mqtt/MqttBroker.java index 6c46b53..3561f02 100755 --- a/src/zutil/net/mqtt/MqttBroker.java +++ b/src/zutil/net/mqtt/MqttBroker.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2020 Ziver Koc + * Copyright (c) 2020-2025 Ziver Koc * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -49,7 +49,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; /** - * TODO: + * This class implements a MQTT Broker. Where arbitrary data can be published by clients and received by subscribers. * * @see MQTT v3.1.1 Spec */ @@ -504,7 +504,7 @@ public class MqttBroker extends ThreadedTCPNetworkServer { private void handlePublish(MqttPacketPublish publishPacket) { if (publishPacket.getFlagQoS() != 0) - throw new UnsupportedOperationException("QoS larger then 0 not supported."); + throw new UnsupportedOperationException("QoS larger then 0 not supported (value: " + publishPacket.getFlagQoS() + ")."); if (publishPacket.getFlagQoS() >= 3) throw new IllegalArgumentException("QoS value of 3 is not valid.");