From d28c0cf08cb0c43b455a88b4e596229d897f886a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 22 May 2024 11:16:51 +0200 Subject: [PATCH] mgmt: hawkbit: move HAWKBIT_JSON_URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit move HAWKBIT_JSON_URL out of the header. Signed-off-by: Fin Maaß --- include/zephyr/mgmt/hawkbit/hawkbit.h | 1 - subsys/mgmt/hawkbit/hawkbit.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/zephyr/mgmt/hawkbit/hawkbit.h b/include/zephyr/mgmt/hawkbit/hawkbit.h index 8af9aa84b15..6ef5952132e 100644 --- a/include/zephyr/mgmt/hawkbit/hawkbit.h +++ b/include/zephyr/mgmt/hawkbit/hawkbit.h @@ -16,7 +16,6 @@ * @ingroup third_party * @{ */ -#define HAWKBIT_JSON_URL "/default/controller/v1" #ifndef ZEPHYR_INCLUDE_MGMT_HAWKBIT_HAWKBIT_H_ #define ZEPHYR_INCLUDE_MGMT_HAWKBIT_HAWKBIT_H_ diff --git a/subsys/mgmt/hawkbit/hawkbit.c b/subsys/mgmt/hawkbit/hawkbit.c index df183ad834f..8e7bb8ea27c 100644 --- a/subsys/mgmt/hawkbit/hawkbit.c +++ b/subsys/mgmt/hawkbit/hawkbit.c @@ -45,6 +45,8 @@ LOG_MODULE_REGISTER(hawkbit, CONFIG_HAWKBIT_LOG_LEVEL); #define HAWKBIT_RECV_TIMEOUT (300 * MSEC_PER_SEC) #define HAWKBIT_SET_SERVER_TIMEOUT K_MSEC(300) +#define HAWKBIT_JSON_URL "/default/controller/v1" + #define HTTP_HEADER_CONTENT_TYPE_JSON "application/json;charset=UTF-8" #define SLOT1_LABEL slot1_partition