Skip to content

Commit

Permalink
Fixing build failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
CIPop committed Aug 1, 2023
1 parent fcf2049 commit 3b9749f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MQTTClient-C/src/MQTTClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ typedef struct MQTTConnackData
typedef struct MQTTSubackData
{
#if defined(MQTTV5)
enum ReasonCodes reasonCode;
enum MQTTReasonCodes reasonCode;
MQTTProperties* properties;
#else
enum MQTTQoS grantedQoS;
Expand All @@ -134,7 +134,7 @@ typedef struct MQTTPubDoneData
// id is omitted as it is already present in the MQTTMessage structure
unsigned char dup;
#if defined(MQTTV5)
enum ReasonCodes reasonCode;
enum MQTTReasonCodes reasonCode;
MQTTProperties* properties;
#endif /* MQTTV5 */
} MQTTPubDoneData;
Expand Down
8 changes: 4 additions & 4 deletions MQTTClient-C/src/V5/MQTTV5Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

typedef struct MQTTV5UnsubackData
{
enum ReasonCodes reasonCode;
enum MQTTReasonCodes reasonCode;
MQTTProperties* properties;
} MQTTV5UnsubackData;

Expand Down Expand Up @@ -100,8 +100,8 @@ DLLExport int MQTTV5SetAuthHandler(MQTTClient* c, controlHandler authHandler);
* @param message - the message to send
* @return success code
*/
DLLExport int MQTTV5Subscribe(MQTTClient* client, const char* topicFilter, enum QoS qos,
messageHandler messageHandler, MQTTProperties* properties, MQTTV5Packet_subscribeOptions options);
DLLExport int MQTTV5Subscribe(MQTTClient* client, const char* topicFilter, enum MQTTQoS qos,
messageHandler messageHandler, MQTTProperties* properties, MQTTSubscribe_options options);

/** MQTT Subscribe - send an MQTT subscribe packet and wait for suback before returning.
* @param client - the client object to use
Expand All @@ -111,7 +111,7 @@ DLLExport int MQTTV5Subscribe(MQTTClient* client, const char* topicFilter, enum
* @return success code
*/
DLLExport int MQTTV5SubscribeWithResults(MQTTClient* client, const char* topicFilter,
enum QoS qos, messageHandler messageHandler, MQTTSubackData* data);
enum MQTTQoS qos, messageHandler messageHandler, MQTTSubackData* data);

/** MQTT Unsubscribe - send an MQTT unsubscribe packet and wait for unsuback before returning.
* @param client - the client object to use
Expand Down

0 comments on commit 3b9749f

Please sign in to comment.