3
3
*
4
4
* SPDX-License-Identifier: EPL-2.0
5
5
*
6
- * SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD
6
+ * SPDX-FileContributor: 2024-2025 Espressif Systems (Shanghai) CO LTD
7
7
*/
8
8
#include "mosquitto_internal.h"
9
9
#include "mosquitto_broker.h"
14
14
#include "utlist.h"
15
15
#include "lib_load.h"
16
16
#include "syslog.h"
17
+ #include "sdkconfig.h"
17
18
18
19
19
20
void config__init (struct mosquitto__config * config )
@@ -66,7 +67,7 @@ void config__init(struct mosquitto__config *config)
66
67
config -> log_file = NULL ;
67
68
68
69
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 ;
70
71
if (db .verbose ) {
71
72
config -> log_type = UINT_MAX ;
72
73
} else {
@@ -91,7 +92,9 @@ void config__init(struct mosquitto__config *config)
91
92
config -> queue_qos0_messages = false;
92
93
config -> retain_available = true;
93
94
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
95
98
config -> upgrade_outgoing_qos = false;
96
99
97
100
config -> daemon = false;
@@ -236,7 +239,7 @@ char *misc__trimblanks(char *str)
236
239
237
240
// Dummy definition of fork() to work around IDF warning: " warning: _fork is not implemented and will always fail"
238
241
// 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 )
240
243
{
241
244
abort ();
242
245
return 0 ;
0 commit comments