* @brief Returns the selected MQTT protocol version index. */
| 930 | * @brief Returns the selected MQTT protocol version index. |
| 931 | */ |
| 932 | quint8 MQTT::Publisher::mqttVersion() const noexcept |
| 933 | { |
| 934 | quint8 index = 0; |
| 935 | for (auto i = m_mqttVersions.begin(); i != m_mqttVersions.end(); ++i) { |
| 936 | if (i.value() == m_protocolVersion) |
| 937 | break; |
| 938 | |
| 939 | ++index; |
| 940 | } |
| 941 | |
| 942 | return index; |
| 943 | } |
| 944 | |
| 945 | /** |
| 946 | * @brief Returns the selected SSL protocol index. |
no test coverage detected