MQTTAsync_failureData5(3)

πŸ’– NAME πŸ’–

MQTTAsync_failureData5 β€” bestie, this is the lil' struct that shows up when your API call does NOT slay 😭


✨ SYNOPSIS ✨

#include <MQTTAsync.h>

πŸŽ€ Data Fields πŸŽ€

char struct_id[4]
int struct_version
MQTTAsync_token token
enum MQTTReasonCodes reasonCode
MQTTProperties properties
int code
const char * message
int packet_type

🌸 Detailed Description 🌸

Okay so picture this: you made an API call and it went absolutely nowhere πŸ’€. This is the data you get handed back when that unsuccessful API call finishes, and it lands in the response callback onFailure. That's the whole vibe. No cap.


πŸ¦‹ Field Documentation πŸ¦‹

char struct_id[4]

The eyecatcher for this structure, bestie β€” it's the little "hey it's me" tag. It will be MQFD. πŸ‘‘

int struct_version

The version number of this structure. It will be 0. That's it, that's the number. ✨

MQTTAsync_token token

A token identifying the failed request. This is the receipts for the one that flopped 🫢

enum MQTTReasonCodes reasonCode

The MQTT reason code that got returned. The why, if you will πŸ’…

MQTTProperties properties

The MQTT properties riding along on the ack, if any. Could be none! Lowkey optional energy.

int code

A numeric code identifying the MQTT client library error. A whole number that says "yeah this is what went wrong" πŸ”₯

const char* message

Optional further text explaining the error. It can be NULL, so don't come for it if it's empty, fr fr.

int packet_type

Packet type on which the failure occurred β€” this one's used for publish QoS 1/2 exchanges πŸŽ€


🌈 Author 🌈

Generated automatically by Doxygen for Paho Asynchronous MQTT C Client Library from the source code. Not me writing it by hand, it's the robot doing its thing πŸ€–βœ¨


And that's the whole page, bestie β€” this little icon was brought to you by Paho Asynchronous MQTT C..., dated Tue Jun 2 2026 00:00:00, and yeah it's literally just MQTTAsync_failureData5(3) again. Periodt. πŸ’–

πŸ“¦ where this page comes from