v3.1.0
Major Changes
- Complete code refactoring, removed duplicated code, added tons of comments making it easier to understand
- API change to
size_t
for all length parameter and internal handling to support the MQTT specified max. packet size - API change of
endPublish()
fromint
tobool
(as specified in the API spec) - Fixed various (potential) memory violations
- Fixed handling of keep alive messages
What's Changed
- Fix domain buffer by @hmueller01 in #10
- Refactor size_t by @hmueller01 in #11
- Fix keepalive handling by @hmueller01 in #14
- Use initializer lists instead of assigning global members in constructor by @hmueller01 in #15
- Fix DEBUG_PSC_PRINTF outputs by @hmueller01 in #18
- Fix castings by @hmueller01 in #20
- Use MQTTRETAINED flag by @hmueller01 in #21
- Optimize __has_include by @hmueller01 in #19
- buildHeader() function updates by @hmueller01 in #22
- Refactor read* functions by @hmueller01 in #23
- member variables before functions by @hmueller01 in #24
- Refactor loop by @hmueller01 in #17
- Refactoring for better readability by @hmueller01 in #26
- remove unneeded this-> on _state variables by @hmueller01 in #27
- Fix potential memory corruption in MQTTPUBLISH callback preparation by @hmueller01 in #25
- refactor beginPublish() and endPublish() by @hmueller01 in #28
- Refactor publish_P() by @hmueller01 in #30
- Refactor publish() by @hmueller01 in #31
- add _client->read() failure test by @hmueller01 in #32
- Optimize tests by @hmueller01 in #41
- Refactor connect() by @hmueller01 in #40
- Update buildHeader() by @hmueller01 in #37
- Refactor socketTimeout to millis by @hmueller01 in #38
- Refactor keepAlive to millis by @hmueller01 in #39
- just some tidy ups of the function order ... by @hmueller01 in #43
- switch to class member initialization instead of constructor init-lists by @hmueller01 in #42
- Refactorings of connected(), subscribe() and unsubscribe() by @hmueller01 in #44
- v3.1.0 release by @hmueller01 in #45
New Contributors and Thanks
@TD-er for several reviews and improvements based on ESPEasy/pubsubclient
@uschindler based on thingsboard#14
@arjenhiemstra based on knolleary#835
Full Changelog: v3.0.2...v3.1.0