Skip to content

Releases: php-mqtt/client

v2.1.0

24 Apr 16:25
8258141
Compare
Choose a tag to compare

What's Changed

Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

25 Nov 21:01
458afc0
Compare
Choose a tag to compare

What's Changed

Added

Changed

Full Changelog: v1.8.1...v2.0.0

v1.8.1

10 Aug 16:19
92e348d
Compare
Choose a tag to compare

What's Changed

Changed

  • Bump sonarsource/sonarcloud-github-action from 1.8 to 1.9 by @dependabot in #154
  • Bump actions/dependency-review-action from 2 to 3 by @dependabot in #156
  • Fix: Allow isPublishMessageWithNullCharacter to receive messages as null by @DavidCova in #162

New Contributors

Full Changelog: v1.8.0...v1.8.1

v1.8.0

10 Feb 19:42
99967b4
Compare
Choose a tag to compare

What's Changed

Additions

Changed

  • ConnectionSettings class: Immutability documentation by @heyrex in #145

New Contributors

Full Changelog: v1.7.1...v1.8.0

v1.7.1

13 Jan 05:42
dc40a6d
Compare
Choose a tag to compare

What's Changed

Fixed

  • Fix: Use blocking socket only during publishing if configured by @Namoshek in #141

Changed

  • Use pull_request_target trigger in test pipeline by @Namoshek in #140

Full Changelog: v1.7.0...v1.7.1

v1.7.0

09 Dec 17:03
846f0de
Compare
Choose a tag to compare

What's Changed

Fixed

  • Add connection setting for blocking mode of socket by @Namoshek in #135

Changed

  • Bump sonarsource/sonarcloud-github-action from 1.7 to 1.8 by @dependabot in #134

Full Changelog: v1.6.0...v1.7.0

v1.6.0

01 Nov 20:02
22a207e
Compare
Choose a tag to compare

What's Changed

Added

  • Add new connection setting for delay between reconnect attempts by @Namoshek in #130

Fixed

Full Changelog: v1.5.0...v1.6.0

v1.5.0

30 Oct 20:59
10750d8
Compare
Choose a tag to compare

What's Changed

Fixed

  • Fix: Local test setup uses port 1884 for MQTT with authentication by @Namoshek in #127

Changed

  • Pass matched topic wildcards to subscription callback by @Namoshek in #128
  • Bump sonarsource/sonarcloud-github-action from 1.6 to 1.7 by @dependabot in #125

Full Changelog: v1.4.0...v1.5.0


Explanation for #128:
The matched wildcards are now passed as fourth parameter to the subscription callback:

$mqtt->subscribe('foo/+/bar/#', function ($topic, $message, $retained, $matchedWildcards) {
    echo sprintf("Received message on topic [%s]: %s\n", $topic, $message);
    echo sprintf("Matched wildcards: %s\n", json_encode($matchedWildcards));
}, 0);

// Received message on topic [foo/baz/bar/hello/world/42]: hello world!
// Matched wildcards: ["baz", "hello/world/42"]

v1.4.0

15 Jun 19:22
d543813
Compare
Choose a tag to compare

What's Changed

Changed

  • Run some integration tests with authentication by @Namoshek in #113
  • Refactor MQTT client loop implementation to allow easier integration with third party event loops by @Alex6092 in #115
    • As long as you are not adding a loopOnce() method in a class extending MqttClient, this change is fully backwards compatible ✔️

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0

26 May 17:35
5813fd2
Compare
Choose a tag to compare

✔️ This release does not contain any backwards incompatible changes.

Added

Full Changelog: v1.2.0...v1.3.0