Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_backend_mqtt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Arif Balik <arifbalik@outlook.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_MQTT_H_
14#define ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_MQTT_H_
15
16#include <zephyr/net/mqtt.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
49
64int log_backend_mqtt_topic_set(const char *topic);
65
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_MQTT_H_ */
int log_backend_mqtt_client_set(struct mqtt_client *client)
Set the MQTT client instance to be able to publish application's log messages to broker.
int log_backend_mqtt_topic_set(const char *topic)
Set the MQTT topic to which log messages will be published.
MQTT Client Implementation.
MQTT Client definition to maintain information relevant to the client.
Definition mqtt.h:898