MQTTAsync_successData5(3)
π MQTTAsync_successData5 π
okay bestie, welcome to the MQTTAsync_successData5 page from the Library Functions Manual π this is a lil struct that shows up when your async MQTT call goes off without a hitch. no cap. let's get into it β¨
β¨ SYNOPSIS β¨
#include <MQTTAsync.h>
πΈ Data Fields πΈ
char struct_id [4]
int struct_version
MQTTAsync_token token
enum MQTTReasonCodes reasonCode
MQTTProperties properties
union {
struct {
int reasonCodeCount
enum MQTTReasonCodes * reasonCodes
} sub
struct {
MQTTAsync_message message
char * destinationName
} pub
struct {
char * serverURI
int MQTTVersion
int sessionPresent
} connect
struct {
int reasonCodeCount
enum MQTTReasonCodes * reasonCodes
} unsub
} alt
π Detailed Description π
The data returned on completion of a successful API call in the response callback onSuccess. so like, when your call ate and everyone's happy, this is the lil goodie bag you get handed π«Ά
π¦ Field Documentation π¦
char struct_id[4]β the eyecatcher for this structure. Will beMQSD. it's giving β¨name tagβ¨ so the lib knows what it's looking at.int struct_versionβ the version number of this structure. Will be0.MQTTAsync_token tokenβ a token identifying the successful request. can be used to refer to the request later π₯ (iykyk β hold onto it).enum MQTTReasonCodes reasonCodeβ MQTT V5 reason code returned.MQTTProperties propertiesβ MQTT V5 properties returned, if any.int reasonCodeCountβ the number of reason codes in thereasonCodesarray.enum MQTTReasonCodes* reasonCodesβ an array ofreasonCodes.struct { ... } subβ ForsubscribeMany, the list ofreasonCodesreturned by the server.MQTTAsync_message messageβ the message being sent to the server.char* destinationNameβ the topic destination for the message.struct { ... } pubβ For publish, the message being sent to the server.char* serverURIβ the connection string of the server.int MQTTVersionβ the version of MQTT being used.int sessionPresentβ the session present flag returned from the server.struct { ... } connectβ π the connect one, bestie.struct { ... } unsubβ ForunsubscribeMany, the list ofreasonCodesreturned by the server.union { ... } altβ a union of the different values that can be returned for subscribe, unsubscribe and publish. it's giving π pick a lane energy β it's a union, so only one of them is actually real at a time.
π Author π
Generated automatically by Doxygen for Paho Asynchronous MQTT C Client Library from the source code.
and that's the whole page, periodt π no notes. this lil slice of the Paho Asynchronous MQTT C Client Library docs is stamped Tue Jun 2 2026 00:00:00 β go forth and slay your callbacks, bestie πβ
π¦ 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