ESP-IDF
mqtt_connect_info::keepalive
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (2/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
mqtt_connect_info::keepalive
mqtt_connect_info::keepalive field
keepalive=0 -> keepalive is disabled
Syntax
Show:
Summary
Declaration
from
mqtt_msg.h:77
int64_t
keepalive
;
Examples
References
from
examples
Code
Location
Referrer
int64_t
keepalive
;
/*!< keepalive=0 -> keepalive is disabled */
mqtt_msg.h:77
MQTT5_CONVERT_TWO_BYTE
(
connection
->
buffer
[
connection
->
outbound_message
.
length
++
]
,
info
->
keepalive
)
// Keep-alive
mqtt5_msg.c:477
mqtt5_msg_connect()
MQTT5_CONVERT_ONE_BYTE_TO_TWO
(
connection_info
->
keepalive
,
property
[
property_offset
++
]
,
property
[
property_offset
++
]
)
mqtt5_msg.c:682
mqtt5_msg_parse_connack_property()
ESP_LOGD
(
TAG
,
"MQTT5_PROPERTY_SERVER_KEEP_ALIVE %lld"
,
connection_info
->
keepalive
)
;
mqtt5_msg.c:683
mqtt5_msg_parse_connack_property()
client
->
mqtt_state
.
connection
.
information
.
keepalive
=
config
->
session
.
keepalive
;
mqtt_client.c:482
esp_mqtt_set_config()
if
(
client
->
mqtt_state
.
connection
.
information
.
keepalive
==
0
)
{
mqtt_client.c:484
esp_mqtt_set_config()
client
->
mqtt_state
.
connection
.
information
.
keepalive
=
MQTT_KEEPALIVE_TICK
;
mqtt_client.c:485
esp_mqtt_set_config()
client
->
mqtt_state
.
connection
.
information
.
keepalive
=
0
;
mqtt_client.c:491
esp_mqtt_set_config()
if
(
client
->
mqtt_state
.
connection
.
information
.
keepalive
>
0
)
{
mqtt_client.c:674
process_keepalive()
const
uint64_t
keepalive_ms
=
client
->
mqtt_state
.
connection
.
information
.
keepalive
*
1000
;
mqtt_client.c:675
process_keepalive()
variable_header
[
header_idx
++
]
=
info
->
keepalive
>
>
8
;
// Keep-alive MSB
mqtt_msg.c:376
mqtt_msg_connect()
variable_header
[
header_idx
]
=
info
->
keepalive
&
0xff
;
// Keep-alive LSB
mqtt_msg.c:377
mqtt_msg_connect()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mqtt_connect_info::keepalive
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::keepalive
esp_mqtt_set_config()
process_keepalive()
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