The `sh_mqtt_rx_rb_flush` function was intended to flush `rx_rb` when get an error return from `mqtt_read_publish_payload_blocking`. Instead of retrieving values from `rx_rb` one by one, calling `ring_buf_reset` achieves the same result more efficiently. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com> |
||
|---|---|---|
| .. | ||
| backends | ||
| modules | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Kconfig.template.shell_log_queue_size | ||
| Kconfig.template.shell_log_queue_timeout | ||
| shell_cmds.c | ||
| shell_fprintf.c | ||
| shell_help.c | ||
| shell_help.h | ||
| shell_history.c | ||
| shell_log_backend.c | ||
| shell_ops.c | ||
| shell_ops.h | ||
| shell_utils.c | ||
| shell_utils.h | ||
| shell_vt100.h | ||
| shell_wildcard.c | ||
| shell_wildcard.h | ||
| shell.c | ||