fixed message build error

This commit is contained in:
strawmanbobi
2024-10-28 09:11:57 +08:00
parent a3dfc6e6d0
commit fc29ac1494

View File

@@ -289,8 +289,8 @@ static String buildGeneralResponse(int console_id, String notify_payload) {
iris_msg_doc["deviceName"] = g_device_name; iris_msg_doc["deviceName"] = g_device_name;
iris_msg_doc["appId"] = g_app_id; iris_msg_doc["appId"] = g_app_id;
iris_msg_doc["consoleId"] = console_id; iris_msg_doc["consoleId"] = console_id;
iris_msg_doc["resp"] = String(NOTIFY_RESP_TEST); iris_msg_doc["resp"] = String(notify_payload);
serializeJson(iris_msg_doc, notify_payload); serializeJson(iris_msg_doc, notification);
return notification; return notification;
} }