MQTTAsync_successData(3)
π MQTTAsync_successData(3) π
okay bestie, welcome to the Library Functions Manual entry for MQTTAsync_successData β yes that's the whole NAME section, it's just the struct's name, and honestly? iconic of it to introduce itself that way. no notes. π
This is the little bundle of joy that shows up in your onSuccess response callback when an API call actually worked. slay. β¨
β¨ SYNOPSIS β¨
#include <MQTTAsync.h>
π¦ Data Fields
MQTTAsync_token token
union {
int qos
int * qosList
struct {
MQTTAsync_message message
char * destinationName
} pub
struct {
char * serverURI
int MQTTVersion
int sessionPresent
} connect
} alt
πΈ Detailed Description πΈ
The data returned on completion of a successful API call in the response callback onSuccess. that's it, that's the vibe β this struct is literally the "you did it bestie π«Ά" receipt. no cap.
π Field Documentation π
MQTTAsync_token token
A token identifying the successful request. Can be used to refer to the request later. it's giving little name tag for your request so you can find it again later, iykyk. π₯
int qos
For subscribe, the granted QoS of the subscription returned by the server. Also for subscribeMany, if only 1 subscription was requested. yes girl, only the one β if you asked for more, scroll down. π
int* qosList
For subscribeMany, if more than one subscription was requested, the list of granted QoSs of the subscriptions returned by the server. it's the group-chat version of qos, basically. π¬
MQTTAsync_message message
the message being sent to the server. π
char* destinationName
the topic destination for the message. where it's going, periodt. π
struct { ... } pub
For publish, the message being sent to the server. the whole message + destinationName situation above lives inside this one, bestie. π
char* serverURI
the connection string of the server. π
int MQTTVersion
the version of MQTT being used. lowkey important to know which flavour you're on. π
int sessionPresent
the session present flag returned from the server. π©
struct { ... } connect
(this one's a nested struct, no extra description β it's just the container holding serverURI, MQTTVersion and sessionPresent together. she's a box. a cute one. π)
union { ... } alt
A union of the different values that can be returned for subscribe, unsubscribe and publish. it's a union so it's one of these at a time, not all of them β do not come for me assuming otherwise. π
β οΈ real talk:altis a union, so depending on which call succeeded you getqos/qosList, orpub, orconnectβ not the whole squad at once. read the field that matches your request, bestie.
π Author π
Generated automatically by Doxygen for Paho Asynchronous MQTT C Client Library from the source code. so it wasn't even hand-written, it was born this way. main character energy fr fr. β
and that's the whole page, babes β no filler, no crumbs. π§
Paho Asynchronous MQTT C Client Library β page generated Tue Jun 2 2026 00:00:00, and you just read MQTTAsync_successData(3). go forth and handle your callbacks responsibly. πππ
π¦ where this page comes from
- fedora 44: paho-c-devel 1.3.16-1.fc44 Β· BSD-3-Clause AND EPL-2.0
- fedora 44: paho-c-devel 1.3.16-1.fc44 Β· BSD-3-Clause AND EPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms