dc297 / mqttclpro

MQTT Client for android with tasker support
MIT License
97 stars 30 forks source link

Publishing but not receiving #63

Closed mouth4war closed 5 years ago

mouth4war commented 5 years ago

One of my instances of MQTT client doesn't seem to be receiving messages anymore. Tasker is able to publish just fine but nothing is received.

Running on Nvidia Shield Android TV Oreo.

Other instances are receiving messages just fine. I've tried removing and re-adding everything. Status shows connected. Tried with it in the foreground.

Is there any way to enable logging?

mouth4war commented 5 years ago

Well it's definitely a recurring issue on my Shield TV.

dc297 commented 5 years ago

Hey, can you check logcat?

dc297 commented 5 years ago

Hey

I have tested the app by emulating Android TV using Android Studio. It is working fine.

Please share a video demonstration of the issue.

Cheers! Deepesh

mouth4war commented 5 years ago

No video but I managed logcat. filtered for mqtt - https://pastebin.com/pKau6N3h

Let me know if you need the whole thing.

mouth4war commented 5 years ago

Here's another after a restart of the shieldtv

https://pastebin.com/C46avHZV

dc297 commented 5 years ago

Hey

I am unable to identify the problem using logcat :\

I would like to know a few other things.

  1. Which broker are you using?

Please check the broker logs for the following:

  1. Does the broker receive the subscribe request from the Client?
  2. Does the broker send the received message to the Client?

If possible, please share the logs from your broker starting from the connection of new client to publish/subscribe.

Cheers! Deepesh

mouth4war commented 5 years ago

Hi Deepesh.

I'll try to get those logs from homeassistant. I noticed the word invalid in the logcat. Does that mean anything?

dc297 commented 5 years ago

Hey, no, that's just some debug log. It doesn't help with our use case here.

Please see if you are able to get the logs.

Cheers! Deepesh

dc297 commented 5 years ago

Closing as no activity