eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
512 stars 303 forks source link

Issue Receiving Messages #45

Closed devilwacause closed 7 years ago

devilwacause commented 7 years ago

Using an EMQTT broker on my raspberry pi. From the broker's web interface I can see that I am connected, but subscriptions dont seem to work.

When using the iot.eclipse.org site I can subscribe perfectly (a bit too perfect when "#" ). So perhaps its not the failure to subscribe but failure to receive message from the broker?

Any ideas?

devilwacause commented 7 years ago

adding this - can publish to the emqtt broker (mosquitto) added in the functionality even tho my application didnt need it just to test the ability. Publishing works perfectly. I'm just unable to receive messages from the broker.

devilwacause commented 7 years ago

Looking further into it - seems there is an issue subscribing. I pulled the list of topics and subscribers on my EMQTT broker and found that there was no subscription to the # topic on the server from the test application.

devilwacause commented 7 years ago

Self solved. Don't like the fact the subscription must be made inside the connection function. Thats ultimately what was preventing it each time.