From f5ca3178c8766980fcf37ad392d77996b3339257 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Fri, 22 Mar 2024 18:27:04 +0100 Subject: [PATCH] [Gate] reduce the size of Json start to optimize --- tool_services/gate/TinyJSON/convert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool_services/gate/TinyJSON/convert.c b/tool_services/gate/TinyJSON/convert.c index 206da2809..7a2dad13f 100644 --- a/tool_services/gate/TinyJSON/convert.c +++ b/tool_services/gate/TinyJSON/convert.c @@ -132,7 +132,7 @@ void Convert_DataToMsg(service_t *service, char *data) return; } - json_t const *services = json_getProperty(root, "services"); + json_t const *services = json_getProperty(root, "s"); // Get services if (services != 0) { @@ -731,8 +731,8 @@ void Convert_JsonToMsg(service_t *service, uint16_t id, luos_type_t type, char * // This function start a Json structure and return the string size. uint16_t Convert_StartData(char *data) { - memcpy(data, "{\"services\":{", sizeof("{\"services\":{")); - return (sizeof("{\"services\":{") - 1); + memcpy(data, "{\"s\":{", sizeof("{\"s\":{")); + return (sizeof("{\"s\":{") - 1); } // This function start a Service into a Json structure and return the string size. uint16_t Convert_StartServiceData(char *data, char *alias)