33 *
44 * SPDX-License-Identifier: EPL-2.0
55 *
6- * SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD
6+ * SPDX-FileContributor: 2024-2025 Espressif Systems (Shanghai) CO LTD
77 */
88#include "mosquitto_internal.h"
99#include "mosquitto_broker.h"
1414#include "utlist.h"
1515#include "lib_load.h"
1616#include "syslog.h"
17+ #include "sdkconfig.h"
1718
1819
1920void config__init (struct mosquitto__config * config )
@@ -66,7 +67,7 @@ void config__init(struct mosquitto__config *config)
6667 config -> log_file = NULL ;
6768
6869 config -> log_facility = LOG_DAEMON ;
69- config -> log_dest = MQTT3_LOG_STDERR | MQTT3_LOG_DLT ;
70+ config -> log_dest = MQTT3_LOG_STDERR | MQTT3_LOG_TOPIC ;
7071 if (db .verbose ) {
7172 config -> log_type = UINT_MAX ;
7273 } else {
@@ -91,7 +92,9 @@ void config__init(struct mosquitto__config *config)
9192 config -> queue_qos0_messages = false;
9293 config -> retain_available = true;
9394 config -> set_tcp_nodelay = false;
94- config -> sys_interval = 10 ;
95+ #if defined(WITH_SYS_TREE )
96+ config -> sys_interval = CONFIG_MOSQ_SYS_UPDATE_INTERVAL ;
97+ #endif
9598 config -> upgrade_outgoing_qos = false;
9699
97100 config -> daemon = false;
@@ -236,7 +239,7 @@ char *misc__trimblanks(char *str)
236239
237240// Dummy definition of fork() to work around IDF warning: " warning: _fork is not implemented and will always fail"
238241// fork() is used in mosquitto.c to deamonize the broker, which we do not call.
239- pid_t fork (void )
242+ pid_t fork (void )
240243{
241244 abort ();
242245 return 0 ;
0 commit comments