ESP-IDF
APPEND_CHECK
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (1/5)...
Files
loading (4/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
APPEND_CHECK
APPEND_CHECK macro
Syntax
Show:
Summary
Declaration
from
mqtt5_msg.c:12
#define
APPEND_CHECK
(
a
,
ret
)
if
(
a
==
-
1
)
{
\
ESP_LOGE
(
TAG
,
"%s(%d) fail"
,
__FUNCTION__
,
__LINE__
)
;
\
return
(
ret
)
;
\
}
Arguments
Argument
a
ret
Examples
References
from
examples
Code
Location
#define
APPEND_CHECK
(
a
,
ret
)
if
(
a
==
-
1
)
{
\
mqtt5_msg.c:12
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_SESSION_EXPIRY_INTERVAL
,
4
,
NULL
,
property
->
session_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:487
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_MAXIMUM_PACKET_SIZE
,
4
,
NULL
,
property
->
maximum_packet_size
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:490
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_RECEIVE_MAXIMUM
,
2
,
NULL
,
property
->
receive_maximum
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:493
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_TOPIC_ALIAS_MAXIMIM
,
2
,
NULL
,
property
->
topic_alias_maximum
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:496
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_REQUEST_RESP_INFO
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:499
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_REQUEST_PROBLEM_INFO
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:502
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:507
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:508
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:511
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
client_id
,
strlen
(
info
->
client_id
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:514
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
NULL
,
0
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:516
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_WILL_DELAY_INTERVAL
,
4
,
NULL
,
will_property
->
will_delay_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:524
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_PAYLOAD_FORMAT_INDICATOR
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:527
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_MESSAGE_EXPIRY_INTERVAL
,
4
,
NULL
,
will_property
->
message_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:530
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
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
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
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:544
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:545
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:548
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
will_topic
,
strlen
(
info
->
will_topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:550
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
will_message
,
info
->
will_length
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:551
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
username
,
strlen
(
info
->
username
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:561
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
NULL
,
0
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:570
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
info
->
password
,
strlen
(
info
->
password
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:573
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic
,
topic_len
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:732
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_PAYLOAD_FORMAT_INDICATOR
,
1
,
NULL
,
1
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:751
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_MESSAGE_EXPIRY_INTERVAL
,
4
,
NULL
,
property
->
message_expiry_interval
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:754
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_TOPIC_ALIAS
,
2
,
NULL
,
property
->
topic_alias
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:757
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_RESPONSE_TOPIC
,
2
,
property
->
response_topic
,
strlen
(
property
->
response_topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:775
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_CORRELATION_DATA
,
2
,
property
->
correlation_data
,
property
->
correlation_data_len
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:779
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:784
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:785
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_CONTENT_TYPE
,
2
,
property
->
content_type
,
strlen
(
property
->
content_type
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:789
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:792
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_SUBSCRIBE_IDENTIFIER
,
0
,
NULL
,
property
->
subscribe_id
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:870
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:875
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:876
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:880
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
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
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:939
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:940
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:947
APPEND_CHECK
(
append_property
(
connection
,
MQTT5_PROPERTY_USER_PROPERTY
,
2
,
item
->
key
,
strlen
(
item
->
key
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:969
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
item
->
value
,
strlen
(
item
->
value
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:970
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:975
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic
,
strlen
(
topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:991
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1006
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1019
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1032
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1045
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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