|
@@ -682,6 +682,8 @@ unsigned char ProtoParser::parsePayload(std::string &payload, bool pub)
|
|
|
PullMessageResult r;
|
|
|
if (r.ParseFromArray(str.c_str(), str.length()))
|
|
|
{
|
|
|
+ MqttLog(LOG_INFO, LOG_TYPE_FUNC, "LRM: %d", r.message_size());
|
|
|
+
|
|
|
p->update(r, _msgCurrent);
|
|
|
std::list<Message> messages;
|
|
|
toJson(r, _payload, messages);
|
|
@@ -1116,8 +1118,7 @@ std::string ProtoParser::pullMessagePack(std::string requestJson, uint32_t &msgI
|
|
|
msgId = 0;
|
|
|
return "";
|
|
|
}
|
|
|
- if (par.id() == 0)
|
|
|
- par.set_id(_msgCurrent);
|
|
|
+
|
|
|
std::string str;
|
|
|
par.SerializeToString(&str);
|
|
|
str = dataEncrypt(str);
|