ESP-IDF
append_property()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
append_property()
append_property() function
Syntax
Show:
Summary
Declaration
from
mqtt5_msg.c:90
static
int
append_property
(
mqtt_connection_t
*
connection
,
uint8_t
property_type
,
uint8_t
len_occupy
,
const
char
*
data
,
size_t
data_len
)
;
Arguments
Argument
connection
property_type
len_occupy
data
data_len
Related Functions
Found 32 other functions taking a
mqtt_connection
argument:
Function
fail_message()
fail_message()
set_message_header_size()
fini_message()
append_string()
update_property_len_value()
init_message()
fini_message()
append_message_id()
append_message_id()
mqtt_msg_buffer_destroy()
mqtt_msg_buffer_init()
mqtt_msg_connect()
mqtt_msg_publish()
mqtt_msg_puback()
mqtt_msg_pubrec()
mqtt_msg_pubrel()
mqtt_msg_pubcomp()
mqtt_msg_subscribe()
mqtt_msg_unsubscribe()
mqtt_msg_pingreq()
mqtt_msg_disconnect()
mqtt5_msg_connect()
mqtt5_msg_publish()
mqtt5_msg_subscribe()
mqtt5_msg_unsubscribe()
mqtt5_msg_disconnect()
mqtt5_msg_pubcomp()
mqtt5_msg_pubrel()
mqtt5_msg_pubrec()
mqtt5_msg_puback()
mqtt_msg_pingresp()
Examples
References
from
examples
Code
Location
Referrer
static
int
append_property
(
mqtt_connection_t
*
connection
,
uint8_t
property_type
,
uint8_t
len_occupy
,
const
char
*
data
,
size_t
data_len
)
mqtt5_msg.c:90
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_SESSION_EXPIRY_INTERVAL
,
4
,
NULL
,
property
->
session_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:487
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_MAXIMUM_PACKET_SIZE
,
4
,
NULL
,
property
->
maximum_packet_size
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:490
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_RECEIVE_MAXIMUM
,
2
,
NULL
,
property
->
receive_maximum
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:493
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_TOPIC_ALIAS_MAXIMIM
,
2
,
NULL
,
property
->
topic_alias_maximum
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:496
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_REQUEST_RESP_INFO
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:499
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_REQUEST_PROBLEM_INFO
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:502
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:507
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:508
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()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
NULL
,
0
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:516
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_WILL_DELAY_INTERVAL
,
4
,
NULL
,
will_property
->
will_delay_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:524
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_PAYLOAD_FORMAT_INDICATOR
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:527
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_MESSAGE_EXPIRY_INTERVAL
,
4
,
NULL
,
will_property
->
message_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:530
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_CONTENT_TYPE
,
2
,
will_property
->
content_type
,
strlen
(
will_property
->
content_type
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:533
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_RESPONSE_TOPIC
,
2
,
will_property
->
response_topic
,
strlen
(
will_property
->
response_topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:536
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_CORRELATION_DATA
,
2
,
will_property
->
correlation_data
,
will_property
->
correlation_data_len
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:539
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:544
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:545
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
will_topic
,
strlen
(
info
->
will_topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:550
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
will_message
,
info
->
will_length
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:551
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
username
,
strlen
(
info
->
username
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:561
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
NULL
,
0
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:570
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
password
,
strlen
(
info
->
password
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:573
mqtt5_msg_connect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic
,
topic_len
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:732
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_PAYLOAD_FORMAT_INDICATOR
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:751
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_MESSAGE_EXPIRY_INTERVAL
,
4
,
NULL
,
property
->
message_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:754
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_TOPIC_ALIAS
,
2
,
NULL
,
property
->
topic_alias
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:757
mqtt5_msg_publish()
if
(
append_property
(
connection
,
MQTT5_PROPERTY_RESPONSE_TOPIC
,
2
,
response_topic
,
response_topic_size
)
==
-
1
)
{
mqtt5_msg.c:768
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_RESPONSE_TOPIC
,
2
,
property
->
response_topic
,
strlen
(
property
->
response_topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:775
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_CORRELATION_DATA
,
2
,
property
->
correlation_data
,
property
->
correlation_data_len
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:779
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:784
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:785
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_CONTENT_TYPE
,
2
,
property
->
content_type
,
strlen
(
property
->
content_type
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:789
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_SUBSCRIBE_IDENTIFIER
,
0
,
NULL
,
property
->
subscribe_id
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:870
mqtt5_msg_subscribe()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:875
mqtt5_msg_subscribe()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:876
mqtt5_msg_subscribe()
if
(
append_property
(
connection
,
0
,
2
,
shared_topic
,
strlen
(
shared_topic
)
)
==
-
1
)
{
mqtt5_msg.c:894
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()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_SESSION_EXPIRY_INTERVAL
,
4
,
NULL
,
disconnect_property_info
->
session_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:934
mqtt5_msg_disconnect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:939
mqtt5_msg_disconnect()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:940
mqtt5_msg_disconnect()
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:969
mqtt5_msg_unsubscribe()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:970
mqtt5_msg_unsubscribe()
if
(
append_property
(
connection
,
0
,
2
,
shared_topic
,
strlen
(
shared_topic
)
)
==
-
1
)
{
mqtt5_msg.c:984
mqtt5_msg_unsubscribe()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic
,
strlen
(
topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:991
mqtt5_msg_unsubscribe()
Call Tree
from
examples
append_property()
is called by 5 functions and calls 1 function:
mqtt5_msg_connect()
mqtt5_msg_publish()
mqtt5_msg_subscribe()
mqtt5_msg_disconnect()
mqtt5_msg_unsubscribe()
All items filtered out
append_property()
generate_variable_len()
All items filtered out
Data Use
from
examples
append_property()
reads 4 variables and writes 1 variable:
mqtt_message::length
mqtt_connection::outbound_message
mqtt_connection::buffer
mqtt_connection::buffer_length
All items filtered out
append_property()
mqtt_message::length
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