Skip to content

MQTTv5 Implementation #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 371 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
371 commits
Select commit Hold shift + click to select a range
681d7b3
Modifiying disconnect API
adituc Mar 24, 2025
d843640
disconnect api changes
adituc Mar 24, 2025
7f4e41b
adding comments
adituc Mar 25, 2025
c110e31
removing v3 flags
adituc Mar 25, 2025
6897ce4
removing v3 code
adituc Mar 25, 2025
4781f96
adding comments
adituc Mar 25, 2025
9a3c4df
removing rc
adituc Mar 26, 2025
682caac
Add optional will props builder in Connect
adituc Mar 26, 2025
31472df
Remove v3 code
adituc Mar 26, 2025
af9a933
Add minor updates to code
DakshitBabbar Mar 26, 2025
c1f5b84
Move MQTTV5_GetAckPacketSize to serializer.c
adituc Mar 27, 2025
8c1833e
Delete v3 code, modify sendConnectWithoutCopy
adituc Mar 27, 2025
1fc680a
Modifying sendPublishWithoutCopy
adituc Mar 27, 2025
0c5ca3f
Modify Disconnect to allow for NULL props
adituc Mar 27, 2025
da1173b
Change sendSubscribeWithoutCopy
adituc Mar 27, 2025
cd938c0
Change MQTTV5_GetAckPacketSize
adituc Mar 30, 2025
4fa21fa
Change MQTTV5_GetAckPacketSize
adituc Mar 30, 2025
d2480cf
Change reason code
adituc Mar 31, 2025
76577b1
Shift API calls to serializer.c
adituc Apr 1, 2025
af99d3a
Add minor updates to code
DakshitBabbar Apr 1, 2025
e79401c
Add checks for optional properties API
adituc Apr 1, 2025
b9d41b2
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Apr 1, 2025
522c738
Set connectProps as an object in the MQTTContext
adituc Apr 2, 2025
e56e8f2
Move MQTTV5_InitConnect to coremqtt.c
adituc Apr 2, 2025
e9ce358
Removing remainingLengthEncodedSize from coremqtt.c
adituc Apr 2, 2025
7979d7e
Put sendMessageVector() for each topic filter
adituc Apr 2, 2025
a2089bc
inlcuding core_mqtt.h in core_mqtt_serializer.c
adituc Apr 2, 2025
dd7f51e
Add minor updates to the code.
DakshitBabbar Apr 2, 2025
2bf0587
Reverting shifting API to serializer
adituc Apr 2, 2025
23f4008
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Apr 2, 2025
28b1228
Setting util properties in serializer.h
adituc Apr 2, 2025
c583293
Revert changes
adituc Apr 2, 2025
6ac9082
Remove serialize properties code
adituc Apr 3, 2025
8e9ce20
Allow users to set ackPropsBuffer to NULL in MQTT_Init
adituc Apr 3, 2025
0c7f347
Remove authInfoSize() from serializer
adituc Apr 3, 2025
22f408e
add util functions to serializer.h
adituc Apr 3, 2025
e70c0d4
Removing v3 from function names
adituc Apr 4, 2025
0a8e2a4
Add checks in subscribe
adituc Apr 4, 2025
7d76b43
add checks for publish
adituc Apr 4, 2025
b70cfa6
Change function name
adituc Apr 4, 2025
270501b
Change function names
adituc Apr 6, 2025
d437b6a
Minor updates
adituc Apr 6, 2025
84ad685
Test for outgoing acks
adituc Mar 30, 2025
13863a2
Add tests in utest and serializer_utest
adituc Apr 1, 2025
51b3d07
test for GetNextProp APIs
adituc Apr 2, 2025
a1a38f8
Modify tests for new init
adituc Apr 2, 2025
908adbb
Add tests
adituc Apr 2, 2025
253000a
Test for GetNextProp APIs
adituc Apr 2, 2025
7311e6b
final tests for optional properties
adituc Apr 2, 2025
e795f66
Revert test files to serializer_utest
adituc Apr 2, 2025
9e587de
Revert changes
adituc Apr 2, 2025
577ae88
Add unit test
adituc Apr 3, 2025
7a592e7
Add unit tests
adituc Apr 3, 2025
27bf642
Add unit tests
adituc Apr 3, 2025
0664d17
add unit tests
adituc Apr 3, 2025
b2200ec
Add tests
adituc Apr 4, 2025
7b01723
Add unit tests
adituc Apr 4, 2025
1bce250
Add tests
adituc Apr 6, 2025
f12bc36
Add tests
adituc Apr 6, 2025
fe6de29
Add tests
adituc Apr 6, 2025
8c55079
add utils file
adituc Apr 6, 2025
05d6b77
Minor updates to the code
DakshitBabbar Apr 7, 2025
55dfff0
Add reason code changes for publish acks
adituc Apr 7, 2025
55fa9d7
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Apr 7, 2025
c84aab8
Minor changes
adituc Apr 7, 2025
a1fcc3d
minor fix
adituc Apr 8, 2025
8a1de56
minor fix
adituc Apr 8, 2025
6143c17
Minor fix
adituc Apr 9, 2025
c926f4b
Minor change
adituc Apr 9, 2025
c9e56e5
add checks to the APIs
adituc Apr 9, 2025
ebf74b8
incoming ack change
adituc Apr 10, 2025
ec5dee0
Add minor updates to code
DakshitBabbar Apr 11, 2025
b081bab
minor fix
adituc Apr 11, 2025
c9e7025
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Apr 11, 2025
818e473
fix disconnect
adituc Apr 13, 2025
46425ab
Add checks to the getProps API
adituc Apr 14, 2025
ace68d8
Minor fix
adituc Apr 15, 2025
ef9b5c6
add tests
adituc Apr 9, 2025
f2eccc0
add unit tests
adituc Apr 13, 2025
cf7300c
Add u-test
adituc Apr 14, 2025
e7fa3f0
Add u-tests
adituc Apr 15, 2025
4605138
Add unit tests
adituc Apr 16, 2025
e44eed0
Resolve PR comments
adituc Apr 16, 2025
0c14625
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Apr 16, 2025
a2269ae
Address PR comments
adituc Apr 16, 2025
e7ec509
Address PR comments
adituc Apr 17, 2025
369a3b9
resolve PR comments
adituc Apr 18, 2025
cdb1ca9
Resolve PR comments
adituc Apr 18, 2025
259032b
Refactor code
adituc Apr 18, 2025
565cc64
Resolve PR comments
adituc Apr 18, 2025
d6aea0c
merge upstream mainline
adituc Apr 18, 2025
8f4144a
Minor fix
adituc Apr 18, 2025
fadb982
Minor fix
adituc Apr 18, 2025
547f6e0
Minor fix
adituc Apr 23, 2025
0f978f2
Update the ubuntu version for uncrustify formating CI checks
DakshitBabbar Apr 23, 2025
e8fed9c
refactor code for coverity
adituc Apr 23, 2025
fb5738d
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Apr 23, 2025
186c09c
tests
adituc Apr 23, 2025
d52bddf
minor fix
adituc Apr 23, 2025
59fa9d2
reason code change
adituc Apr 23, 2025
f52e146
reduce complexity
adituc Apr 23, 2025
b702c47
minor fix
adituc Apr 23, 2025
c53c176
add decodeAndDiscard_utf8
adituc Apr 24, 2025
5a8f58c
Minor change to run formatting CI
DakshitBabbar Apr 25, 2025
e05daf8
Add unit tests + formatting changes
adituc Apr 28, 2025
a010e8e
Adding tests
adituc Apr 28, 2025
59f447a
Add documentation
adituc Apr 29, 2025
d7bfe3a
Add documentation
adituc Apr 29, 2025
005bfcf
Fix warning
adituc Apr 30, 2025
bfca9af
Change test file name
adituc May 1, 2025
db6274f
add documentation
adituc May 2, 2025
fb59991
Merge branch 'main' into mqtt-v5
adituc May 2, 2025
a04b8f2
Memory stats changes
adituc May 2, 2025
8daf2f5
fix spell-check errors
adituc May 2, 2025
b810c35
fix complexity errors
adituc May 2, 2025
8de1cb9
Reduce complexity
adituc May 2, 2025
b2aede0
fix memory stats
adituc May 2, 2025
bf56497
minor fix
adituc May 2, 2025
c96f782
change complexity threshold to 17
adituc May 2, 2025
623edb1
Add extra APIs
adituc May 9, 2025
414485c
Trigger CI Checks
DakshitBabbar Apr 30, 2025
a14de1d
Fix Formatting and Memory stats
DakshitBabbar May 12, 2025
248c9ca
Fix memory stats
DakshitBabbar May 12, 2025
c67833a
Merge branch 'main' into mqtt-v5
DakshitBabbar May 12, 2025
148535e
Fix minor coverity violations
DakshitBabbar May 12, 2025
7bc031a
Modify CBMC proofs for Init, Connect, DeserializeAck. DeserialisePublish
DakshitBabbar May 13, 2025
6d79968
Add MQTT_Serialize_* APIs
adituc May 14, 2025
db3d0d4
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc May 14, 2025
188ab33
Update Disconnect API CBMC proof
DakshitBabbar May 15, 2025
1eab9fe
modify property validation
adituc May 15, 2025
bd4e5bf
Resolve Conflicts Manually
DakshitBabbar May 16, 2025
44e2f62
Remove formatting bot workflow (#320)
archigup May 9, 2025
7205ba2
Fix minor coverity violations
DakshitBabbar May 12, 2025
64adad9
modify property validation
adituc May 15, 2025
47774d9
Update CI to run only 1 proof for testing
DakshitBabbar May 16, 2025
81561cd
Update the CI to run cbmc without PR as well
DakshitBabbar May 16, 2025
541684b
Update code for new API names
DakshitBabbar May 16, 2025
58ade31
add input checking to user facing functions
adituc May 17, 2025
4b4e47b
add checks for connack
adituc May 17, 2025
8a8b411
add validation for packets
adituc May 19, 2025
720ae16
Cleanup the code for unused macros
DakshitBabbar May 19, 2025
a2de1ff
Code cleanup and minor fix
adituc May 19, 2025
d5f9f74
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc May 19, 2025
cc8f2aa
fix warnings
adituc May 20, 2025
3440939
Move core_mqtt_utils.c from MQTT_SOURCES to MQTT_SERIALIZER_SOURCES
adituc May 20, 2025
4897703
Add UnsubscribeWithoutCopy and resolve PR comments
adituc May 21, 2025
5377a02
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc May 21, 2025
e9242b7
Combine all incoming acks under 1 function, MQTT_DeserializeAck
adituc May 25, 2025
786d9df
Add validation to Outgoing Publish Ack Properties
adituc May 26, 2025
6b9793d
Fix Formatting via uncrustify
adituc May 26, 2025
2d9c951
Update Migration Guide for coreMQTT v3.0.0 and address PR comments
adituc May 28, 2025
69be6fb
Fix coverity warnings
adituc May 28, 2025
4e37f56
Modify subscription options in MQTT_SerializeSubscribe
adituc May 28, 2025
994d11f
Minor fix
adituc May 28, 2025
36c98b9
Fix coverity warnings
adituc May 28, 2025
51a9658
Revert MQTT_SerializeSubscribe change
adituc May 28, 2025
71893b9
Merge branch 'mqtt-v5' of https://github.com/adituc/coreMQTT into mqt…
adituc May 28, 2025
baaec2b
Merge branch into mqtt-v5
adituc May 28, 2025
43b1f64
Fix memory stats, update Migration guide and fix spell check
adituc May 28, 2025
ced9b45
Increase branch coverage
adituc May 29, 2025
3ff2048
Increase branch coverage
adituc May 29, 2025
733ab44
Remove redundant test and add MISRA.md
adituc May 29, 2025
b6b5acb
Remove unused fields from the context and MQTTPublishInfo
adituc May 29, 2025
89119fb
Move MQTT_PropertyBuilder_Init to serializer
adituc May 29, 2025
1cbf594
Add new CI check to test cbmc
DakshitBabbar May 29, 2025
80e9af0
Add invalid reason code and adjust tests
adituc May 30, 2025
46e728e
Update proofs for deserialize publish and publish properties
DakshitBabbar Jun 2, 2025
ca7427a
Fix memory stats and doxygen error
adituc Jun 3, 2025
6949faa
Fix formatting via uncrustify
adituc Jun 3, 2025
b9f3a12
Fix minor unit test warning
adituc Jun 3, 2025
78084b6
Fix formatting workflow failure
adituc Jun 3, 2025
8e67694
Merge branch 'mqtt-v5' into cbmc-mqttv5
DakshitBabbar Jun 3, 2025
2e37b52
Add CBMC branch for CI checks
DakshitBabbar Jun 3, 2025
892a894
Trigger CI Checks
DakshitBabbar Jun 3, 2025
27d1a73
Fix build errors after merge
DakshitBabbar Jun 3, 2025
4f9652a
Fix all CBMC build failures
DakshitBabbar Jun 3, 2025
c5cf88d
Fix Connect Proof
DakshitBabbar Jun 3, 2025
d95a8f2
Modify CI to run particular CBMC proofs
DakshitBabbar Jun 3, 2025
86d14b0
Update Connect proof - test
DakshitBabbar Jun 4, 2025
91b8009
Update proofs for processloop, deserializeack and decodeack
DakshitBabbar Jun 4, 2025
0bfd031
Add subset of proofs to CI
DakshitBabbar Jun 4, 2025
0f70b17
Add proofs for processloop and publish
DakshitBabbar Jun 4, 2025
433ba17
Remove MQTT_SerializeConnectfrom CBMC CI run
DakshitBabbar Jun 4, 2025
8ae9bbe
Fix tests and documentation after cbmc updates
adituc Jun 5, 2025
3faa459
Add MQTT_SerializeConnect to the CI check - test
DakshitBabbar Jun 5, 2025
a2aa462
Add MQTT_SerializeDisconnect in CI check - test
DakshitBabbar Jun 5, 2025
6ecd97e
Merge branch 'cbmc-mqttv5' of https://github.com/DakshitBabbar/coreMQ…
adituc Jun 5, 2025
1e63751
Fix formatting via patch
adituc Jun 5, 2025
fd72621
Update proofs for serializer APIs
DakshitBabbar Jun 5, 2025
4a7767d
Reset CI checks workflow back
DakshitBabbar Jun 5, 2025
dadfa8e
Include the default value of macros
DakshitBabbar Jun 5, 2025
da70ebc
Update the CI to have only serialize connect and disconnect APIs
DakshitBabbar Jun 6, 2025
40f264f
Add serialize publish and disconnect in CI checks - test
DakshitBabbar Jun 6, 2025
1f5f44b
Update the serialise publish cbmc proof
DakshitBabbar Jun 6, 2025
f8c1b77
Add serialize subscribe and unsubscribe to ci - test
DakshitBabbar Jun 6, 2025
35506ba
Exclude serialize connect from the CI - test
DakshitBabbar Jun 6, 2025
9282314
Update CI workflow file
DakshitBabbar Jun 6, 2025
7b359c4
Add new proof fot MQTT_DeserializeDisconnect
DakshitBabbar Jun 6, 2025
c8d2713
Add CBMC proofs for the PropGet APIs
DakshitBabbar Jun 7, 2025
6f0e992
Update serializeconnect proof - test
DakshitBabbar Jun 7, 2025
8bdf772
Stub MQTT_SerializeConnectFixedHeader
DakshitBabbar Jun 7, 2025
7ab33e8
Update MQTT_SerializeConnect for testing
DakshitBabbar Jun 7, 2025
0b58ff7
Limit the size of connect and will properties
DakshitBabbar Jun 7, 2025
f648469
Reset CI to run all proofs
DakshitBabbar Jun 7, 2025
67b90c4
Fix unit tests
adituc Jun 9, 2025
45b3889
Fix doxygen error, spellcheck
adituc Jun 9, 2025
aa9cc3b
Fix formatting via patch
adituc Jun 9, 2025
d4945a1
Increase branch coverage to 100% and discard unnecessary macros from …
adituc Jun 9, 2025
ca8e699
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Jun 9, 2025
4319e43
Fix test_ResendUnackedPublishesWithNotConnected and spellcheck
adituc Jun 9, 2025
a0fa457
Fix stale comments and modify event callback
adituc Jun 10, 2025
b3fe686
Fix unit test warnings
adituc Jun 10, 2025
c59e28a
Resolve merge conflicts
adituc Jun 10, 2025
614927c
Fix CI Checks
adituc Jun 10, 2025
088c576
Fix formatting via patch
adituc Jun 10, 2025
8e30adb
Fix formatting via patch
adituc Jun 10, 2025
e9fc7b0
Merge branch 'main' into mqtt-v5
adituc Jun 11, 2025
0a907f1
Fix unit test warnings and modify validatePublishAckReasonCodes
adituc Jun 11, 2025
1b95d5a
Fix CI Check Errors
adituc Jun 11, 2025
2836c15
Fix unit test warnings
adituc Jun 11, 2025
1b07191
Update doxygen comments
adituc Jun 12, 2025
4762aea
Changed the function signature of MQTT_DeserializeAck and fixed MQTT_…
adituc Jun 12, 2025
c0c5eb7
Fix formatting via patch
adituc Jun 12, 2025
dc08456
Fix an instance of MQTT_PropertyBuilder_Init to MQTTPropertyBuilder_Init
adituc Jun 12, 2025
cadb6f5
Rectify CBMC proofs
DakshitBabbar Jun 12, 2025
59dea54
Minor updates for passing CBMC
DakshitBabbar Jun 13, 2025
32b08c5
Resolve PR comments
adituc Jun 13, 2025
d4befba
Resolve PR comments
adituc Jun 16, 2025
0edda48
Resolve PR Comments
adituc Jun 16, 2025
71d23c1
Minor change to decodeSubackPropertyLengt()
adituc Jun 16, 2025
c1bb2e6
Update eventcallback stub signature for cbmc proofs
DakshitBabbar Jun 16, 2025
2b90b3c
Fix Documentation for functions
adituc Jun 17, 2025
98ebcf0
Merge branch 'mqtt-v5' of https://github.com/blipbloping/coreMQTT int…
adituc Jun 17, 2025
db78089
Minor updates to fix CBMC proofs.
DakshitBabbar Jun 17, 2025
c8f743e
Update CBMC proof readme and unwanted code
DakshitBabbar Jun 17, 2025
6e68afe
Fix code to pass CI Checks
adituc Jun 18, 2025
933dbe7
Fix formatting
adituc Jun 18, 2025
3796c32
Change parameter names of pointers to start with p*
adituc Jun 19, 2025
1c5a1da
Fix formatting and memory checks
adituc Jun 19, 2025
dd899e1
Fix coverity errors
DakshitBabbar Jun 19, 2025
52e4720
Fix unit test warning
adituc Jun 20, 2025
bcf69a8
Fix formatting check and doxygen check
adituc Jun 20, 2025
fc06bff
Update migration guide for formating fixes
DakshitBabbar Jun 25, 2025
88fe883
Fix Migration Guide formatting
adituc Jun 26, 2025
79e4cb3
Update doxygen documentation
DakshitBabbar Jun 27, 2025
26f88c4
Add table of contents to migration guide
DakshitBabbar Jun 27, 2025
2f53ce3
Update the doxyfile to remove warnings
DakshitBabbar Jun 27, 2025
595ba80
Fix formating and spell checks
DakshitBabbar Jun 27, 2025
f00e888
Clean up cbmc directories
DakshitBabbar Jun 27, 2025
95d1c4b
Add documentation changes
DakshitBabbar Jul 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/.cSpellWords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,12 @@ Werror
Wextra
Wsign
Wunused
mqttpropadd
mqttpropget
pubsubscriptionid
mqttpropertybuilder
MQTTV
subscribeid
DCOV
mqtteventcallback

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
uses: FreeRTOS/CI-CD-Github-Actions/complexity@main
with:
path: ./
horrid_threshold: 12
horrid_threshold: 17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did our complexity go up so much?

Copy link
Author

@adituc adituc Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The complexity increased mainly due to functions like deserializeConnackProperties, which now has a complexity of 17. This function handles parsing of all the possible properties in a CONNACK packet (about 17 different properties). I considered splitting the logic into smaller functions, but since all of it is part of a single, cohesive task (parsing the CONNACK properties), breaking it up would have made the flow harder to follow. So we decided to increase the complexity threshold.


doxygen:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions CTestTestfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# CMake generated Testfile for
# Source directory: /home/ubuntu/coreMQTT/test
# Build directory: /home/ubuntu/coreMQTT
#
# This file includes the relevant testing commands required for
# testing this directory and lists subdirectories to be tested as well.
subdirs("unit-test")
5 changes: 5 additions & 0 deletions MISRA.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ _Ref 18.2.1_
to be subtracted from the index. It is manually verified that the index will always be
within bounds of the array. However, Coverity is flagging this as a deviation. Thus, we
are suppressing it.

#### Rule 10.5

_Ref 10.5.1_
- MISRA C-2012 Rule 10.5 states that the value of an expression should not be cast to an inappropriate essential type. In this library, reason codes are input as bytes and processed accordingly. A byte representing the reason code is cast to an enumerated type that is also based on uint8_t. It is verified that the values will always fall within the valid range of the enumeration, and the underlying type of the enumeration is compatible. Thus, this cast is considered safe.
2,367 changes: 2,284 additions & 83 deletions MigrationGuide.md

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
**[API Documentation Pages for current and previous releases of this library can be found here](https://freertos.github.io/coreMQTT/)**

This repository contains the coreMQTT library that has been optimized for a low
memory footprint. The coreMQTT library is compliant with the
[MQTT 3.1.1](https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html)
memory footprint.
standard. It has no dependencies on any additional libraries other than the
standard C library, a customer-implemented network transport interface, and
_optionally_ a user-implemented platform time function. This library is
Expand All @@ -21,6 +20,10 @@ library has also undergone both static code analysis from
safety through the
[CBMC automated reasoning tool](https://www.cprover.org/cbmc/).

-For MQTT v3.1.1 [(MQTTv3 Specification)](https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html), use code from tag : [coreMQTT v2.3.1](https://github.com/FreeRTOS/coreMQTT/tree/v2.3.1)

-For MQTT v5.0 [(MQTTv5 Specification)](https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html), use code from tag : [coreMQTT v3.0.0](https://github.com/FreeRTOS/coreMQTT/tree/v3.0.0)

See memory requirements for this library
[here](./docs/doxygen/include/size_table.md).

Expand Down Expand Up @@ -109,10 +112,15 @@ connectInfo.userNameLength = USERNAME_STRING_LENGTH;
mqttStatus = MQTT_Connect( pMqttContext, &connectInfo, NULL, CONNACK_RECV_TIMEOUT_MS, pSessionPresent );
```

## Upgrading to v2.0.0 and above
## Upgrading to v2.x

With coreMQTT versions v2.x, there are breaking changes. Please refer to the
[coreMQTT version v2.x Migration Guide](MigrationGuide.md).

## Upgrading to v3.0.0 and above

With coreMQTT versions >=v2.0.0, there are breaking changes. Please refer to the
[coreMQTT version >=v2.0.0 Migration Guide](MigrationGuide.md).
With coreMQTT versions >=v3.0.0, there are breaking changes. Please refer to the
[coreMQTT version >=v3.0.0 Migration Guide](MigrationGuide.md)

## Building the Library

Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen/config.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PROJECT_NUMBER = v2.3.1+
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.

PROJECT_BRIEF = "MQTT 3.1.1 Client Library"
PROJECT_BRIEF = "MQTT 5.0 Client Library"

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
Expand Down
12 changes: 6 additions & 6 deletions docs/doxygen/include/size_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</tr>
<tr>
<td>core_mqtt.c</td>
<td><center>4.9K</center></td>
<td><center>4.2K</center></td>
<td><center>7.0K</center></td>
<td><center>6.1K</center></td>
</tr>
<tr>
<td>core_mqtt_state.c</td>
Expand All @@ -19,12 +19,12 @@
</tr>
<tr>
<td>core_mqtt_serializer.c</td>
<td><center>2.9K</center></td>
<td><center>2.3K</center></td>
<td><center>11.4K</center></td>
<td><center>8.1K</center></td>
</tr>
<tr>
<td><b>Total estimates</b></td>
<td><b><center>9.5K</center></b></td>
<td><b><center>7.8K</center></b></td>
<td><b><center>20.1K</center></b></td>
<td><b><center>15.5K</center></b></td>
</tr>
</table>
Loading
Loading