btu
Posts: 10
Joined: Fri Apr 07, 2017 4:30 pm

MQTT Message Subscribing via Java

Tue May 23, 2017 7:24 am

I could received the message and show it in python, but I need to subscribe message and show the message in my java GUI application. I am searching on the internet about this topic and I found the mqttcallback interface receiving MQTT message. Unfortunately, I haven't run code perfectly, yet. Does anyone have an experience about that?

mattlewis
Posts: 118
Joined: Sat Jan 12, 2013 3:05 pm
Location: UK
Contact: Website

Re: MQTT Message Subscribing via Java

Tue May 23, 2017 7:30 am

http://www.diozero.com/


ghp
Posts: 1601
Joined: Wed Jun 12, 2013 12:41 pm
Location: Stuttgart Germany
Contact: Website

Re: MQTT Message Subscribing via Java

Tue May 23, 2017 5:04 pm

Hello,
eclipse paho library is very well documented: https://eclipse.org/paho/clients/java/
Hope this helps,
Gerhard

btu
Posts: 10
Joined: Fri Apr 07, 2017 4:30 pm

Re: MQTT Message Subscribing via Java

Tue May 23, 2017 5:43 pm

I couldn't find information about receiving the message at this site, but thanks for your helping.
ghp wrote:Hello,
eclipse paho library is very well documented: https://eclipse.org/paho/clients/java/
Hope this helps,
Gerhard

User avatar
clicky
Posts: 501
Joined: Thu Oct 25, 2012 7:34 am

Re: MQTT Message Subscribing via Java

Wed May 24, 2017 12:51 pm

Did you managed it now?

btu
Posts: 10
Joined: Fri Apr 07, 2017 4:30 pm

Re: MQTT Message Subscribing via Java

Wed May 24, 2017 1:14 pm

Yes, I have done it.
clicky wrote:Did you managed it now?

User avatar
clicky
Posts: 501
Joined: Thu Oct 25, 2012 7:34 am

Re: MQTT Message Subscribing via Java

Thu May 25, 2017 10:42 am

Good to know! I did sending messages using MQTT recently and got it working on a computer and the RPi and automatically assumed it would work with Android, too... (which was wrong) You need separate package for android implementation of MQTT....

Return to “Java”