Skip to content

Commit

Permalink
include header
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmaster committed Nov 5, 2024
1 parent ba92bd2 commit 2a6893d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MQTTPacket/src/MQTTConnect.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

#include <stdint.h>

#if defined(MQTTV5)
#include "V5/MQTTProperties.h"
#endif

enum connack_return_codes
{
MQTT_CONNECTION_ACCEPTED = 0,
Expand Down
7 changes: 6 additions & 1 deletion MQTTPacket/src/V5/MQTTProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* Ian Craggs - initial API and implementation and/or initial documentation
*******************************************************************************/

#ifndef MQTTPROPERTIES_H_
#define MQTTPROPERTIES_H_


enum PropertyNames {
PAYLOAD_FORMAT_INDICATOR = 1,
Expand Down Expand Up @@ -100,4 +103,6 @@ int MQTTProperties_read(MQTTProperties* properties, unsigned char** pptr, unsign
* @param identifier the `PropertyNames` property identifier.
* @return the `PropertyTypes` type of the property
*/
DLLExport int MQTTProperty_getType(int identifier);
DLLExport int MQTTProperty_getType(int identifier);

#endif // MQTTPROPERTIES_H_

0 comments on commit 2a6893d

Please sign in to comment.