maxbachmann / mqtt-mm2-gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

testing with mosquitto_sub/mosquitto_pub

shilbert01 opened this issue · comments

I fail to see if I have properly configured the whole thing. It would be nice if you could provide a method for testing (e.g. if the bridge properly registered to the mosquitto server and if it handles incoming requests

Something along the lines of

mosquitto_sub 

mosquitto_pub 

would be nice.

thanks for opening the issue. I will look into it.

I cleaned up all the code and added comments yesterday. I did add a description on the use of mosquitto_pub aswell.
It correctly receives messages from multiple topics now and can use username and password. I still have to test sending messages with the MMM-HideShowMove module, which is the last part I did not test yet ;)

I fixed a couple more small things and the MMM-HideShowMove module receives the message now correctly.
Since you asked for it I did add some additional debug output aswell.

I just found that MMM-MQTT has a much better implementation, so I will use it and just change what needs to be different (I did that in the MMM-MQTT branch, but did not test it yet)