What do the 2 fields mqttSendBuffer and mqttRecvBuffer mean?

10 views
Skip to first unread message

Jacky Bek

unread,
Oct 1, 2021, 11:54:37 PM10/1/21
to open62541
uint8_t is a unsigned __int8, meaning it is an integer.
What does integer pointer declare for mqttSendBuffer & mqttRecvBuffer used for?
There is already 2 other fields that captures the buffer size.

==============================================================
/* mqtt network layer specific internal data */
typedef struct {
    UA_NetworkAddressUrlDataType address;
    UA_UInt32 mqttRecvBufferSize;
    UA_UInt32 mqttSendBufferSize;
    uint8_t *mqttSendBuffer;
    uint8_t *mqttRecvBuffer;
    UA_String *mqttClientId;
    UA_Connection *connection;
#ifdef UA_ENABLE_MQTT_TLS_OPENSSL
    SSL *ssl;
#endif
    void * mqttClient;
    void (*callback)(UA_ByteString *encodedBuffer, UA_ByteString *topic);
    UA_String mqttUsername;
    UA_String mqttPassword;
    UA_String mqttCaFilePath;
    UA_String mqttCaPath;
    UA_String mqttClientCertPath;
    UA_String mqttClientKeyPath;
    UA_Boolean mqttUseTLS;
} UA_PubSubChannelDataMQTT;

Reply all
Reply to author
Forward
0 new messages