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;