Problem understanding:
When 2 action commands are sent too close, the plugin creates and connects 2 clients with the same ID. The broker disconnects automatically the oldest one before it can send the command.
Solution:
Call the Mosquitto\Client constructor without any argument: the ID will be generated randomly.
Or build a unique id.
Problem reported on the forum:
Problem understanding: When 2 action commands are sent too close, the plugin creates and connects 2 clients with the same ID. The broker disconnects automatically the oldest one before it can send the command.
Solution: Call the Mosquitto\Client constructor without any argument: the ID will be generated randomly. Or build a unique id.