forked from boostorg/mqtt5
Support multiple subscription identifiers in received messages.
Summary: - refactor property encoding - change user property type to be std::pair<std::string, std::string> Reviewers: ivica Reviewed By: ivica Subscribers: korina Differential Revision: https://repo.mireo.local/D27867
This commit is contained in:
1 parent
b40ddb3ced
commit
1acdd99f28
35 files changed
+469
-380
No files matched your search
@@ -80,7 +80,14 @@ inline std::string to_readable_props(Props props) {
|
||||
if (v.has_value())
|
||||
stream << *v << " ";
|
||||
if constexpr (is_vector<decltype(v)>)
|
||||
stream << boost::algorithm::join(v, ",");
|
||||
for (size_t i = 0; i < v.size(); i++) {
|
||||
if constexpr (is_pair<decltype(v[i])>)
|
||||
stream << "(" << v[i].first << ", " << v[i].second << ")";
|
||||
else
|
||||
stream << v[i];
|
||||
if (i + 1 < v.size())
|
||||
stream << ", ";
|
||||
}
|
||||
return true;
|
||||
});
|
||||
return stream.str();
|
||||
|
||||
Reference in new issue
Block a user