ESP-IDF
fail_message()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/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
fail_message()
fail_message() function
Syntax
Show:
Summary
Declaration
from
mqtt5_msg.c:148
static
mqtt_message_t
*
fail_message
(
mqtt_connection_t
*
connection
)
;
Arguments
Argument
connection
Related Functions
Found 32 other functions taking a
mqtt_connection
argument:
Function
append_property()
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
mqtt_message_t
*
fail_message
(
mqtt_connection_t
*
connection
)
mqtt5_msg.c:148
return
fail_message
(
connection
)
;
mqtt5_msg.c:170
fini_message()
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
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:511
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
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:548
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()
return
fail_message
(
connection
)
;
mqtt5_msg.c:729
mqtt5_msg_publish()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic
,
topic_len
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:732
mqtt5_msg_publish()
return
fail_message
(
connection
)
;
mqtt5_msg.c:735
mqtt5_msg_publish()
return
fail_message
(
connection
)
;
mqtt5_msg.c:740
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()
return
fail_message
(
connection
)
;
mqtt5_msg.c:765
mqtt5_msg_publish()
return
fail_message
(
connection
)
;
mqtt5_msg.c:771
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
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:792
mqtt5_msg_publish()
return
fail_message
(
connection
)
;
mqtt5_msg.c:862
mqtt5_msg_subscribe()
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()
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:880
mqtt5_msg_subscribe()
return
fail_message
(
connection
)
;
mqtt5_msg.c:884
mqtt5_msg_subscribe()
fail_message
(
connection
)
;
mqtt5_msg.c:891
mqtt5_msg_subscribe()
return
fail_message
(
connection
)
;
mqtt5_msg.c:897
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()
return
fail_message
(
connection
)
;
mqtt5_msg.c:905
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
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:947
mqtt5_msg_disconnect()
return
fail_message
(
connection
)
;
mqtt5_msg.c:956
mqtt5_msg_unsubscribe()
return
fail_message
(
connection
)
;
mqtt5_msg.c:960
mqtt5_msg_unsubscribe()
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()
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:975
mqtt5_msg_unsubscribe()
fail_message
(
connection
)
;
mqtt5_msg.c:981
mqtt5_msg_unsubscribe()
return
fail_message
(
connection
)
;
mqtt5_msg.c:987
mqtt5_msg_unsubscribe()
APPEND_CHECK
(
append_property
(
connection
,
0
,
2
,
topic
,
strlen
(
topic
)
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:991
mqtt5_msg_unsubscribe()
return
fail_message
(
connection
)
;
mqtt5_msg.c:1001
mqtt5_msg_puback()
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1006
mqtt5_msg_puback()
return
fail_message
(
connection
)
;
mqtt5_msg.c:1014
mqtt5_msg_pubrec()
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1019
mqtt5_msg_pubrec()
return
fail_message
(
connection
)
;
mqtt5_msg.c:1027
mqtt5_msg_pubrel()
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1032
mqtt5_msg_pubrel()
return
fail_message
(
connection
)
;
mqtt5_msg.c:1040
mqtt5_msg_pubcomp()
APPEND_CHECK
(
update_property_len_value
(
connection
,
connection
->
outbound_message
.
length
-
properties_offset
-
1
,
properties_offset
)
,
fail_message
(
connection
)
)
;
mqtt5_msg.c:1045
mqtt5_msg_pubcomp()
Call Tree
from
examples
fail_message()
is called by 10 functions:
fini_message()
mqtt5_msg_connect()
mqtt5_msg_publish()
mqtt5_msg_subscribe()
mqtt5_msg_disconnect()
mqtt5_msg_unsubscribe()
mqtt5_msg_puback()
mqtt5_msg_pubrec()
mqtt5_msg_pubrel()
mqtt5_msg_pubcomp()
All items filtered out
fail_message()
All items filtered out
Data Use
from
examples
fail_message()
reads 2 variables and writes 2 variables:
mqtt_connection::outbound_message
mqtt_connection::buffer
All items filtered out
fail_message()
mqtt_message::data
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