ESP-IDF
topic_t::filter
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
topic_t::filter
topic_t::filter field
Topic filter to subscribe
Syntax
Show:
Summary
Declaration
from
mqtt_client.h:372
const
char
*
filter
;
Examples
References
from
examples
Code
Location
Referrer
const
char
*
filter
;
/*!< Topic filter to subscribe */
mqtt_client.h:372
if
(
topic_list
[
topic_number
]
.
filter
[
0
]
==
'\0'
)
{
mqtt5_msg.c:883
mqtt5_msg_subscribe()
uint16_t
shared_topic_size
=
strlen
(
topic_list
[
topic_number
]
.
filter
)
+
strlen
(
MQTT5_SHARED_SUB
)
+
strlen
(
property
->
share_name
)
;
mqtt5_msg.c:887
mqtt5_msg_subscribe()
snprintf
(
shared_topic
,
shared_topic_size
,
MQTT5_SHARED_SUB
,
property
->
share_name
,
topic_list
[
topic_number
]
.
filter
)
;
mqtt5_msg.c:893
mqtt5_msg_subscribe()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic_list
[
topic_number
]
.
filter
,
strlen
(
topic_list
[
topic_number
]
.
filter
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:901
mqtt5_msg_subscribe()
ESP_LOGE
(
TAG
,
"Error to send subscribe message, first topic: %s, qos: %d"
,
topic_list
[
0
]
.
filter
,
topic_list
[
0
]
.
qos
)
;
mqtt_client.c:1943
esp_mqtt_client_subscribe_multiple()
ESP_LOGD
(
TAG
,
"Sent subscribe, first topic=%s, id: %d"
,
topic_list
[
0
]
.
filter
,
client
->
mqtt_state
.
pending_msg_id
)
;
mqtt_client.c:1948
esp_mqtt_client_subscribe_multiple()
esp_mqtt_topic_t
user_topic
=
{
.
filter
=
topic
,
.
qos
=
qos
}
;
mqtt_client.c:1955
esp_mqtt_client_subscribe_single()
if
(
topic_list
[
topic_number
]
.
filter
[
0
]
==
'\0'
)
{
mqtt_msg.c:524
mqtt_msg_subscribe()
if
(
append_string
(
connection
,
topic_list
[
topic_number
]
.
filter
,
strlen
(
topic_list
[
topic_number
]
.
filter
)
)
<
0
)
{
mqtt_msg.c:528
mqtt_msg_subscribe()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
topic_t::filter
is read by 3 functions:
All items filtered out
topic_t::filter
esp_mqtt_client_subscribe_multiple()
mqtt_msg_subscribe()
mqtt5_msg_subscribe()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out