ESP-IDF
+
0
/2 examples
SourceVu will show references to
esp_mqtt_client_config_t::credentials
from the following samples and libraries:
mqtt5 sample
ssl_mutual_auth sample
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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_config_t::credentials
esp_mqtt_client_config_t::credentials field
Client related credentials for authentication. User credentials for broker
Syntax
Show:
Summary
Declaration
from
mqtt_client.h:272
struct
credentials_t
{
const
char
*
username
;
const
char
*
client_id
;
bool
set_null_client_id
;
struct
authentication_t
{
const
char
*
password
;
const
char
*
certificate
;
size_t
certificate_len
;
const
char
*
key
;
size_t
key_len
;
const
char
*
key_password
;
int
key_password_len
;
bool
use_secure_element
;
void
*
ds_data
;
}
authentication
;
}
credentials
;
Examples
esp_mqtt_client_config_t::credentials
is referenced by 2 libraries and example projects:
mqtt5 sample
ssl_mutual_auth sample
References
from
0/2
examples
Code
Location
Referrer
}
credentials
;
/*!< User credentials for broker */
mqtt_client.h:302
ESP_MEM_CHECK
(
TAG
,
esp_mqtt_set_if_config
(
config
->
credentials
.
username
,
&
client
->
mqtt_state
.
connection
.
information
.
username
)
,
goto
_mqtt_set_config_failed
)
;
mqtt_client.c:440
esp_mqtt_set_config()
ESP_MEM_CHECK
(
TAG
,
esp_mqtt_set_if_config
(
config
->
credentials
.
authentication
.
password
,
&
client
->
mqtt_state
.
connection
.
information
.
password
)
,
goto
_mqtt_set_config_failed
)
;
mqtt_client.c:441
esp_mqtt_set_config()
if
(
!
config
->
credentials
.
set_null_client_id
)
{
mqtt_client.c:443
esp_mqtt_set_config()
if
(
config
->
credentials
.
client_id
)
{
mqtt_client.c:444
esp_mqtt_set_config()
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()
if
(
!
client
->
mqtt_state
.
connection
.
information
.
clean_session
&&
config
->
credentials
.
set_null_client_id
)
{
mqtt_client.c:477
esp_mqtt_set_config()
client
->
config
->
clientcert_buf
=
config
->
credentials
.
authentication
.
certificate
;
mqtt_client.c:567
esp_mqtt_set_config()
client
->
config
->
clientcert_bytes
=
config
->
credentials
.
authentication
.
certificate_len
;
mqtt_client.c:568
esp_mqtt_set_config()
client
->
config
->
clientkey_buf
=
config
->
credentials
.
authentication
.
key
;
mqtt_client.c:569
esp_mqtt_set_config()
client
->
config
->
clientkey_bytes
=
config
->
credentials
.
authentication
.
key_len
;
mqtt_client.c:570
esp_mqtt_set_config()
client
->
config
->
use_secure_element
=
config
->
credentials
.
authentication
.
use_secure_element
;
mqtt_client.c:573
esp_mqtt_set_config()
client
->
config
->
ds_data
=
config
->
credentials
.
authentication
.
ds_data
;
mqtt_client.c:574
esp_mqtt_set_config()
if
(
config
->
credentials
.
authentication
.
key_password
&&
config
->
credentials
.
authentication
.
key_password_len
)
{
mqtt_client.c:576
esp_mqtt_set_config()
client
->
config
->
clientkey_password_len
=
config
->
credentials
.
authentication
.
key_password_len
;
mqtt_client.c:577
esp_mqtt_set_config()
memcpy
(
client
->
config
->
clientkey_password
,
config
->
credentials
.
authentication
.
key_password
,
client
->
config
->
clientkey_password_len
)
;
mqtt_client.c:580
esp_mqtt_set_config()
Call Tree
from
0/2
examples
All items filtered out
All items filtered out
Data Use
from
0/2
examples
esp_mqtt_client_config_t::credentials
is read by 1 function:
All items filtered out
esp_mqtt_client_config_t::credentials
esp_mqtt_set_config()
All items filtered out
Class Tree
from
0/2
examples
All items filtered out
All items filtered out
Override Tree
from
0/2
examples
All items filtered out
All items filtered out
Implementations
from
0/2
examples
All items filtered out
All items filtered out
Instances
from
0/2
examples
Lifecycle
from
0/2
examples
All items filtered out
All items filtered out