45 std::vector<
char> packet(packetIdentifier.serialize());
47 for (
const Topic& topic : topics) {
48 iot::mqtt::types::String topicString;
49 topicString = topic.getName();
51 std::vector<
char> tmpPacket = topicString.serialize();
52 packet.insert(packet.end(), tmpPacket.begin(), tmpPacket.end());
54 packet.push_back(
static_cast<
char>(topic.getQoS()));