|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Shell access over an MQTT connection. More...
Files | |
| file | shell_mqtt.h |
| Header file for the MQTT shell backend. | |
Macros | |
| #define | SHELL_MQTT_DEFINE(_name) |
| Define an MQTT shell transport instance. | |
Functions | |
| const struct shell * | shell_backend_mqtt_get_ptr (void) |
| This function provides pointer to shell mqtt backend instance. | |
| bool | shell_mqtt_get_devid (char *id, int id_max_len) |
| Function to define the device ID (devid) for which the shell mqtt backend uses as a client ID when it connects to the broker. | |
Shell access over an MQTT connection.
| #define SHELL_MQTT_DEFINE | ( | _name | ) |
#include <zephyr/shell/shell_mqtt.h>
Define an MQTT shell transport instance.
| _name | Name of the transport instance. |
| const struct shell * shell_backend_mqtt_get_ptr | ( | void | ) |
#include <zephyr/shell/shell_mqtt.h>
This function provides pointer to shell mqtt backend instance.
Function returns pointer to the shell mqtt instance. This instance can be next used with shell_execute_cmd function in order to test commands behavior.
| bool shell_mqtt_get_devid | ( | char * | id, |
| int | id_max_len ) |
#include <zephyr/shell/shell_mqtt.h>
Function to define the device ID (devid) for which the shell mqtt backend uses as a client ID when it connects to the broker.
It will publish its output to devid_tx and subscribe to devid_rx for input .
| id | Pointer to the devid buffer |
| id_max_len | Maximum size of the devid buffer defined by DEVICE_ID_HEX_MAX_SIZE |