ESP-IDF
mqtt_connect_info::client_id
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (3/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
mqtt_connect_info::client_id
mqtt_connect_info::client_id field
Syntax
Show:
Summary
Declaration
from
mqtt_msg.h:72
char
*
client_id
;
Examples
References
from
examples
Code
Location
Referrer
char
*
client_id
;
mqtt_msg.h:72
if
(
info
->
client_id
!=
NULL
&&
info
->
client_id
[
0
]
!=
'\0'
)
{
mqtt5_msg.c:513
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
client_id
,
strlen
(
info
->
client_id
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:514
mqtt5_msg_connect()
if
(
connection_info
->
client_id
)
{
mqtt5_msg.c:626
mqtt5_msg_parse_connack_property()
free
(
connection_info
->
client_id
)
;
mqtt5_msg.c:627
mqtt5_msg_parse_connack_property()
connection_info
->
client_id
=
calloc
(
1
,
len
+
1
)
;
mqtt5_msg.c:629
mqtt5_msg_parse_connack_property()
if
(
!
connection_info
->
client_id
)
{
mqtt5_msg.c:630
mqtt5_msg_parse_connack_property()
memcpy
(
connection_info
->
client_id
,
&
property
[
property_offset
]
,
len
)
;
mqtt5_msg.c:634
mqtt5_msg_parse_connack_property()
connection_info
->
client_id
[
len
]
=
'\0'
;
mqtt5_msg.c:635
mqtt5_msg_parse_connack_property()
ESP_LOGD
(
TAG
,
"MQTT5_PROPERTY_ASSIGNED_CLIENT_IDENTIFIER %s"
,
connection_info
->
client_id
)
;
mqtt5_msg.c:637
mqtt5_msg_parse_connack_property()
ESP_MEM_CHECK
(
TAG
,
esp_mqtt_set_if_config
(
config
->
credentials
.
client_id
,
&
client
->
mqtt_state
.
connection
.
information
.
client_id
)
,
goto
_mqtt_set_config_failed
)
;
mqtt_client.c:445
esp_mqtt_set_config()
}
else
if
(
client
->
mqtt_state
.
connection
.
information
.
client_id
==
NULL
)
{
mqtt_client.c:446
esp_mqtt_set_config()
client
->
mqtt_state
.
connection
.
information
.
client_id
=
platform_create_id_string
(
)
;
mqtt_client.c:447
esp_mqtt_set_config()
ESP_MEM_CHECK
(
TAG
,
client
->
mqtt_state
.
connection
.
information
.
client_id
,
goto
_mqtt_set_config_failed
)
;
mqtt_client.c:449
esp_mqtt_set_config()
ESP_LOGD
(
TAG
,
"MQTT client_id=%s"
,
client
->
mqtt_state
.
connection
.
information
.
client_id
)
;
mqtt_client.c:450
esp_mqtt_set_config()
free
(
client
->
mqtt_state
.
connection
.
information
.
client_id
)
;
mqtt_client.c:648
esp_mqtt_destroy_config()
if
(
info
->
client_id
!=
NULL
&&
info
->
client_id
[
0
]
!=
'\0'
)
{
mqtt_msg.c:383
mqtt_msg_connect()
if
(
append_string
(
connection
,
info
->
client_id
,
strlen
(
info
->
client_id
)
)
<
0
)
{
mqtt_msg.c:384
mqtt_msg_connect()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mqtt_connect_info::client_id
is written by 2 functions and is read by 5 functions:
esp_mqtt_set_config()
mqtt5_msg_parse_connack_property()
All items filtered out
mqtt_connect_info::client_id
esp_mqtt_set_config()
esp_mqtt_destroy_config()
mqtt_msg_connect()
mqtt5_msg_connect()
mqtt5_msg_parse_connack_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