Zephyr Project API 4.1.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
7#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_MQTT_H_
8#define ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_MQTT_H_
9
10#include <zephyr/net/mqtt.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
43
58int log_backend_mqtt_topic_set(const char *topic);
59
64#ifdef __cplusplus
65}
66#endif
67
68#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