diff --git a/components/mosquitto/api.md b/components/mosquitto/api.md
index f010cbb24..aea93fdfe 100644
--- a/components/mosquitto/api.md
+++ b/components/mosquitto/api.md
@@ -15,6 +15,7 @@
| Type | Name |
| ---: | :--- |
| struct | [**mosq\_broker\_config**](#struct-mosq_broker_config)
_Mosquitto configuration structure._ |
+| typedef void(\* | [**mosq\_message\_cb\_t**](#typedef-mosq_message_cb_t)
|
## Functions
@@ -34,12 +35,20 @@ ESP port of mosquittto supports only the options in this configuration structure
Variables:
+- void(\* handle_message_cb
On message callback. If configured, user function is called whenever mosquitto processes a message.
+
- char \* host
Address on which the broker is listening for connections
- int port
Port number of the broker to listen to
- esp\_tls\_cfg\_server\_t \* tls_cfg
ESP-TLS configuration (if TLS transport used) Please refer to the ESP-TLS official documentation for more details on configuring the TLS options. You can open the respective docs with this idf.py command: `idf.py docs -sp api-reference/protocols/esp_tls.html`
+### typedef `mosq_message_cb_t`
+
+```c
+typedef void(* mosq_message_cb_t) (char *client, char *topic, char *data, int len, int qos, int retain);
+```
+
## Functions Documentation