MQTTProperty(3)

πŸ’– MQTTProperty πŸ’–

okay bestie, so this is MQTTProperty(3) β€” a manual page from the Library Functions Manual, and it's genuinely one of the cutest little structs in the whole Paho MQTT C Client Library. she's giving "one struct to hold them all" energy and honestly? obsessed. 🫢


✨ SYNOPSIS ✨

#include <MQTTProperties.h>

πŸŽ€ Data Fields

  • enum MQTTPropertyCodes identifier
  • union { unsigned char byte / unsigned short integer2 / unsigned int integer4 / struct { MQTTLenString data / MQTTLenString value } } value

🌸 Detailed Description 🌸

so like, what IS this thing? literally just:

Structure to hold an MQTT version 5 property of any type

periodt. that's the whole job. any type. she contains multitudes. πŸ’…


πŸ¦‹ Field Documentation πŸ¦‹

⭐ enum MQTTPropertyCodes identifier

The MQTT V5 property id. A multi-byte integer. no cap, multi-byte β€” so don't go assuming it fits in one lil byte, she's got range.

⭐ unsigned char byte

holds the value of a byte property type

⭐ unsigned short integer2

holds the value of a 2 byte integer property type

⭐ unsigned int integer4

holds the value of a 4 byte integer property type

⭐ MQTTLenString data

The value of a string property, or the name of a user property. two jobs, no complaints, main character behavior fr fr πŸ‘‘

⭐ MQTTLenString value

The value of a user property.

⭐ union { ... } value

The value of the property, as a union of the different possible types. she's a union, she shape-shifts, it's giving versatility 🌈


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for the Paho MQTT C Client Library from the source code. so yeah, a robot wrote her, and the robot ate. πŸ€–βœ¨


heads up bestie: since value is a union, only one of those members is real at any given moment β€” the one that matches identifier. peek at the wrong one and you're reading whatever bytes happen to be chillin' there. no vibe check will save you. πŸ’€

and that's the whole page!! mwah πŸ’– shoutout to the Paho MQTT C Client Library, dated Tue Jun 2 2026 00:00:00, for bringing us this absolute icon. iykyk πŸŽ€πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from