Skip to content

Commit

Permalink
For backward compatibility with the previous client, the correct stru…
Browse files Browse the repository at this point in the history
…ctures must be used (MQTTV5 must be defined).
  • Loading branch information
CIPop committed Aug 4, 2023
1 parent db4f1c4 commit 6a0d465
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MQTTPacket/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ ADD_EXECUTABLE(
# warning: ‘ftime’ is deprecated [-Wdeprecated-declarations]
target_compile_options(test15 PRIVATE -Wno-deprecated-declarations)

# To allow existing MQTTv3 applications using the MQTTv5 library, MQTTV5 structures must be used.
target_compile_definitions(test15 PRIVATE MQTTV5)

TARGET_LINK_LIBRARIES(
test15
paho-embed-mqtt5c
Expand Down

0 comments on commit 6a0d465

Please sign in to comment.