Skip to content
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

fixed custom "MQTT Topic Format" and newer phpMQTT.php #56

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

clmcavaney
Copy link
Contributor

I found that the code didn't work when I had a "MQTT Topic Format" value populated in the settings.
Mine is tasmota/%topic%/%prefix%

The lib/mqtt.inc.php wasn't working, but I think there was a problem with the phpMQTT.php library.
So, I updated that and also then amended the mqtt.inc.php subscribe functions to handle the "MQTT Topic Format". There was a condition missing for the "name".

There was some updates on the phpMQTT.php library, and this version worked for me - so I included a copy of that version in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant