ESP-IDF
esp_mqtt_client::mqtt5_config
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
esp_mqtt_client::mqtt5_config
esp_mqtt_client::mqtt5_config field
Syntax
Show:
Summary
Declaration
from
mqtt_client_priv.h:122
mqtt5_config_storage_t
*
mqtt5_config
;
Examples
References
from
examples
Code
Location
Referrer
mqtt5_config_storage_t
*
mqtt5_config
;
mqtt_client_priv.h:122
connection
.
information
,
&
client
->
mqtt5_config
->
connect_property_info
,
&
client
->
mqtt5_config
->
server_resp_property_info
,
connect_rsp_code
,
&
ack_flag
,
&
client
->
event
.
property
->
user_property
)
!=
ESP_OK
)
{
mqtt5_client.c:85
esp_mqtt5_parse_connack()
if
(
property
.
topic_alias
>
client
->
mqtt5_config
->
connect_property_info
.
topic_alias_maximum
)
{
mqtt5_client.c:109
esp_mqtt5_get_publish_data()
ESP_LOGE
(
TAG
,
"%s: Broker response topic alias %d is over the max topic alias %d"
,
__func__
,
property
.
topic_alias
,
client
->
mqtt5_config
->
connect_property_info
.
topic_alias_maximum
)
;
mqtt5_client.c:110
esp_mqtt5_get_publish_data()
*
msg_topic
=
esp_mqtt5_client_get_topic_alias
(
client
->
mqtt5_config
->
peer_topic_alias
,
property
.
topic_alias
,
msg_topic_len
)
;
mqtt5_client.c:117
esp_mqtt5_get_publish_data()
if
(
esp_mqtt5_client_update_topic_alias
(
client
->
mqtt5_config
->
peer_topic_alias
,
property
.
topic_alias
,
*
msg_topic
,
*
msg_topic_len
)
!=
ESP_OK
)
{
mqtt5_client.c:123
esp_mqtt5_get_publish_data()
client
->
mqtt5_config
=
calloc
(
1
,
sizeof
(
mqtt5_config_storage_t
)
)
;
mqtt5_client.c:146
esp_mqtt5_create_default_config()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt5_config
,
return
ESP_FAIL
)
mqtt5_client.c:147
esp_mqtt5_create_default_config()
client
->
mqtt5_config
->
server_resp_property_info
.
max_qos
=
2
;
mqtt5_client.c:148
esp_mqtt5_create_default_config()
client
->
mqtt5_config
->
server_resp_property_info
.
retain_available
=
true
;
mqtt5_client.c:149
esp_mqtt5_create_default_config()
client
->
mqtt5_config
->
server_resp_property_info
.
wildcard_subscribe_available
=
true
;
mqtt5_client.c:150
esp_mqtt5_create_default_config()
client
->
mqtt5_config
->
server_resp_property_info
.
subscribe_identifiers_available
=
true
;
mqtt5_client.c:151
esp_mqtt5_create_default_config()
client
->
mqtt5_config
->
server_resp_property_info
.
shared_subscribe_available
=
true
;
mqtt5_client.c:152
esp_mqtt5_create_default_config()
client
->
mqtt5_config
->
server_resp_property_info
.
receive_maximum
=
65535
;
mqtt5_client.c:153
esp_mqtt5_create_default_config()
if
(
client
->
mqtt5_config
->
server_resp_property_info
.
max_qos
<
qos
)
{
mqtt5_client.c:275
esp_mqtt5_client_subscribe_check()
ESP_LOGE
(
TAG
,
"Server only support max QoS level %d"
,
client
->
mqtt5_config
->
server_resp_property_info
.
max_qos
)
;
mqtt5_client.c:276
esp_mqtt5_client_subscribe_check()
if
(
client
->
mqtt5_config
->
server_resp_property_info
.
max_qos
<
qos
)
{
mqtt5_client.c:286
esp_mqtt5_client_publish_check()
ESP_LOGE
(
TAG
,
"Server only support max QoS level %d"
,
client
->
mqtt5_config
->
server_resp_property_info
.
max_qos
)
;
mqtt5_client.c:287
esp_mqtt5_client_publish_check()
if
(
!
client
->
mqtt5_config
->
server_resp_property_info
.
retain_available
&&
retain
)
{
mqtt5_client.c:292
esp_mqtt5_client_publish_check()
if
(
client
->
send_publish_packet_count
>
client
->
mqtt5_config
->
server_resp_property_info
.
receive_maximum
)
{
mqtt5_client.c:298
esp_mqtt5_client_publish_check()
ESP_LOGE
(
TAG
,
"Client send more than %d QoS1 and QoS2 PUBLISH packet without no ack"
,
client
->
mqtt5_config
->
server_resp_property_info
.
receive_maximum
)
;
mqtt5_client.c:299
esp_mqtt5_client_publish_check()
if
(
client
->
mqtt5_config
)
{
mqtt5_client.c:309
esp_mqtt5_client_destory()
free
(
client
->
mqtt5_config
->
will_property_info
.
content_type
)
;
mqtt5_client.c:310
esp_mqtt5_client_destory()
free
(
client
->
mqtt5_config
->
will_property_info
.
response_topic
)
;
mqtt5_client.c:311
esp_mqtt5_client_destory()
free
(
client
->
mqtt5_config
->
will_property_info
.
correlation_data
)
;
mqtt5_client.c:312
esp_mqtt5_client_destory()
free
(
client
->
mqtt5_config
->
server_resp_property_info
.
response_info
)
;
mqtt5_client.c:313
esp_mqtt5_client_destory()
esp_mqtt5_client_delete_topic_alias
(
client
->
mqtt5_config
->
peer_topic_alias
)
;
mqtt5_client.c:314
esp_mqtt5_client_destory()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
connect_property_info
.
user_property
)
;
mqtt5_client.c:315
esp_mqtt5_client_destory()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
will_property_info
.
user_property
)
;
mqtt5_client.c:316
esp_mqtt5_client_destory()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
)
;
mqtt5_client.c:317
esp_mqtt5_client_destory()
free
(
client
->
mqtt5_config
)
;
mqtt5_client.c:318
esp_mqtt5_client_destory()
if
(
property
->
topic_alias
>
client
->
mqtt5_config
->
server_resp_property_info
.
topic_alias_maximum
)
{
mqtt5_client.c:426
esp_mqtt5_client_set_publish_property()
ESP_LOGE
(
TAG
,
"Topic alias %d is bigger than server support %d"
,
property
->
topic_alias
,
client
->
mqtt5_config
->
server_resp_property_info
.
topic_alias_maximum
)
;
mqtt5_client.c:427
esp_mqtt5_client_set_publish_property()
client
->
mqtt5_config
->
publish_property_info
=
property
;
mqtt5_client.c:431
esp_mqtt5_client_set_publish_property()
if
(
!
client
->
mqtt5_config
->
server_resp_property_info
.
shared_subscribe_available
)
{
mqtt5_client.c:461
esp_mqtt5_client_set_subscribe_property()
client
->
mqtt5_config
->
subscribe_property_info
=
property
;
mqtt5_client.c:472
esp_mqtt5_client_set_subscribe_property()
if
(
!
client
->
mqtt5_config
->
server_resp_property_info
.
shared_subscribe_available
)
{
mqtt5_client.c:492
esp_mqtt5_client_set_unsubscribe_property()
client
->
mqtt5_config
->
unsubscribe_property_info
=
property
;
mqtt5_client.c:503
esp_mqtt5_client_set_unsubscribe_property()
client
->
mqtt5_config
->
disconnect_property_info
.
session_expiry_interval
=
property
->
session_expiry_interval
;
mqtt5_client.c:524
esp_mqtt5_client_set_disconnect_property()
client
->
mqtt5_config
->
disconnect_property_info
.
disconnect_reason
=
property
->
disconnect_reason
;
mqtt5_client.c:527
esp_mqtt5_client_set_disconnect_property()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
)
;
mqtt5_client.c:530
esp_mqtt5_client_set_disconnect_property()
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
=
calloc
(
1
,
sizeof
(
struct
mqtt5_user_property_list_t
)
)
;
mqtt5_client.c:531
esp_mqtt5_client_set_disconnect_property()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
,
{
mqtt5_client.c:532
esp_mqtt5_client_set_disconnect_property()
STAILQ_INIT
(
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
)
;
mqtt5_client.c:536
esp_mqtt5_client_set_disconnect_property()
if
(
esp_mqtt5_user_property_copy
(
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
,
property
->
user_property
)
!=
ESP_OK
)
{
mqtt5_client.c:537
esp_mqtt5_client_set_disconnect_property()
free
(
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
)
;
mqtt5_client.c:539
esp_mqtt5_client_set_disconnect_property()
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
=
NULL
;
mqtt5_client.c:540
esp_mqtt5_client_set_disconnect_property()
client
->
mqtt5_config
->
connect_property_info
.
session_expiry_interval
=
connect_property
->
session_expiry_interval
;
mqtt5_client.c:567
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
maximum_packet_size
=
connect_property
->
maximum_packet_size
;
mqtt5_client.c:575
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
maximum_packet_size
=
client
->
mqtt_state
.
in_buffer_length
;
mqtt5_client.c:578
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
receive_maximum
=
connect_property
->
receive_maximum
;
mqtt5_client.c:581
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
topic_alias_maximum
=
connect_property
->
topic_alias_maximum
;
mqtt5_client.c:584
esp_mqtt5_client_set_connect_property()
if
(
!
client
->
mqtt5_config
->
peer_topic_alias
)
{
mqtt5_client.c:585
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
peer_topic_alias
=
calloc
(
1
,
sizeof
(
struct
mqtt5_topic_alias_list_t
)
)
;
mqtt5_client.c:586
esp_mqtt5_client_set_connect_property()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt5_config
->
peer_topic_alias
,
goto
_mqtt_set_config_failed
)
;
mqtt5_client.c:587
esp_mqtt5_client_set_connect_property()
STAILQ_INIT
(
client
->
mqtt5_config
->
peer_topic_alias
)
;
mqtt5_client.c:588
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
request_resp_info
=
connect_property
->
request_resp_info
;
mqtt5_client.c:592
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
request_problem_info
=
connect_property
->
request_problem_info
;
mqtt5_client.c:595
esp_mqtt5_client_set_connect_property()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
connect_property_info
.
user_property
)
;
mqtt5_client.c:598
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
connect_property_info
.
user_property
=
calloc
(
1
,
sizeof
(
struct
mqtt5_user_property_list_t
)
)
;
mqtt5_client.c:599
esp_mqtt5_client_set_connect_property()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt5_config
->
connect_property_info
.
user_property
,
goto
_mqtt_set_config_failed
)
;
mqtt5_client.c:600
esp_mqtt5_client_set_connect_property()
STAILQ_INIT
(
client
->
mqtt5_config
->
connect_property_info
.
user_property
)
;
mqtt5_client.c:601
esp_mqtt5_client_set_connect_property()
if
(
esp_mqtt5_user_property_copy
(
client
->
mqtt5_config
->
connect_property_info
.
user_property
,
connect_property
->
user_property
)
!=
ESP_OK
)
{
mqtt5_client.c:602
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
will_property_info
.
payload_format_indicator
=
connect_property
->
payload_format_indicator
;
mqtt5_client.c:608
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
will_property_info
.
will_delay_interval
=
connect_property
->
will_delay_interval
;
mqtt5_client.c:611
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
will_property_info
.
message_expiry_interval
=
connect_property
->
message_expiry_interval
;
mqtt5_client.c:614
esp_mqtt5_client_set_connect_property()
ESP_MEM_CHECK
(
TAG
,
esp_mqtt_set_if_config
(
connect_property
->
content_type
,
&
client
->
mqtt5_config
->
will_property_info
.
content_type
)
,
goto
_mqtt_set_config_failed
)
;
mqtt5_client.c:616
esp_mqtt5_client_set_connect_property()
ESP_MEM_CHECK
(
TAG
,
esp_mqtt_set_if_config
(
connect_property
->
response_topic
,
&
client
->
mqtt5_config
->
will_property_info
.
response_topic
)
,
goto
_mqtt_set_config_failed
)
;
mqtt5_client.c:617
esp_mqtt5_client_set_connect_property()
free
(
client
->
mqtt5_config
->
will_property_info
.
correlation_data
)
;
mqtt5_client.c:619
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
will_property_info
.
correlation_data
=
malloc
(
connect_property
->
correlation_data_len
)
;
mqtt5_client.c:620
esp_mqtt5_client_set_connect_property()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt5_config
->
will_property_info
.
correlation_data
,
goto
_mqtt_set_config_failed
)
;
mqtt5_client.c:621
esp_mqtt5_client_set_connect_property()
memcpy
(
client
->
mqtt5_config
->
will_property_info
.
correlation_data
,
connect_property
->
correlation_data
,
connect_property
->
correlation_data_len
)
;
mqtt5_client.c:622
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
will_property_info
.
correlation_data_len
=
connect_property
->
correlation_data_len
;
mqtt5_client.c:623
esp_mqtt5_client_set_connect_property()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
will_property_info
.
user_property
)
;
mqtt5_client.c:626
esp_mqtt5_client_set_connect_property()
client
->
mqtt5_config
->
will_property_info
.
user_property
=
calloc
(
1
,
sizeof
(
struct
mqtt5_user_property_list_t
)
)
;
mqtt5_client.c:627
esp_mqtt5_client_set_connect_property()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt5_config
->
will_property_info
.
user_property
,
goto
_mqtt_set_config_failed
)
;
mqtt5_client.c:628
esp_mqtt5_client_set_connect_property()
STAILQ_INIT
(
client
->
mqtt5_config
->
will_property_info
.
user_property
)
;
mqtt5_client.c:629
esp_mqtt5_client_set_connect_property()
if
(
esp_mqtt5_user_property_copy
(
client
->
mqtt5_config
->
will_property_info
.
user_property
,
connect_property
->
will_user_property
)
!=
ESP_OK
)
{
mqtt5_client.c:630
esp_mqtt5_client_set_connect_property()
&
client
->
mqtt_state
.
connection
.
information
,
&
client
->
mqtt5_config
->
connect_property_info
,
&
client
->
mqtt5_config
->
will_property_info
)
;
mqtt_client.c:731
esp_mqtt_connect()
mqtt5_msg_disconnect
(
&
client
->
mqtt_state
.
connection
,
&
client
->
mqtt5_config
->
disconnect_property_info
)
;
mqtt_client.c:1813
send_disconnect_msg()
esp_mqtt5_client_delete_user_property
(
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
)
;
mqtt_client.c:1815
send_disconnect_msg()
client
->
mqtt5_config
->
disconnect_property_info
.
user_property
=
NULL
;
mqtt_client.c:1816
send_disconnect_msg()
memset
(
&
client
->
mqtt5_config
->
disconnect_property_info
,
0
,
sizeof
(
esp_mqtt5_disconnect_property_config_t
)
)
;
mqtt_client.c:1817
send_disconnect_msg()
&
client
->
mqtt_state
.
pending_msg_id
,
client
->
mqtt5_config
->
subscribe_property_info
)
;
mqtt_client.c:1918
esp_mqtt_client_subscribe_multiple()
client
->
mqtt5_config
->
subscribe_property_info
=
NULL
;
mqtt_client.c:1920
esp_mqtt_client_subscribe_multiple()
&
client
->
mqtt_state
.
pending_msg_id
,
client
->
mqtt5_config
->
unsubscribe_property_info
)
;
mqtt_client.c:1974
esp_mqtt_client_unsubscribe()
client
->
mqtt5_config
->
unsubscribe_property_info
=
NULL
;
mqtt_client.c:1976
esp_mqtt_client_unsubscribe()
&
pending_msg_id
,
client
->
mqtt5_config
->
publish_property_info
,
client
->
mqtt5_config
->
server_resp_property_info
.
response_info
)
;
mqtt_client.c:2018
make_publish()
client
->
mqtt5_config
->
publish_property_info
=
NULL
;
mqtt_client.c:2020
make_publish()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
esp_mqtt_client::mqtt5_config
is written by 1 function and is read by 16 functions:
esp_mqtt5_create_default_config()
All items filtered out
esp_mqtt_client::mqtt5_config
esp_mqtt_connect()
send_disconnect_msg()
esp_mqtt_client_subscribe_multiple()
esp_mqtt_client_unsubscribe()
make_publish()
esp_mqtt5_parse_connack()
esp_mqtt5_get_publish_data()
esp_mqtt5_create_default_config()
esp_mqtt5_client_subscribe_check()
esp_mqtt5_client_publish_check()
esp_mqtt5_client_destory()
esp_mqtt5_client_set_publish_property()
esp_mqtt5_client_set_subscribe_property()
esp_mqtt5_client_set_unsubscribe_property()
esp_mqtt5_client_set_disconnect_property()
esp_mqtt5_client_set_connect_property()
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