B4A Library MQTT - MQ Telemetry Transport for B4A

engvidal

Member
Licensed User
Longtime User
Hi Alberto
Can you help me ? I already use mqtt with MQTTlens, raspberry, PIC's, ESP8266, so I believe my environment is ok, but when I try to compile your sample for Android, i get this message?

Compiling generated Java code: Error
Cannot find C:\program files (x86)\Basic4android\libraries\org.eclipse;paho.client.mqttv3-1.0.1.jar


Thank You
 

engvidal

Member
Licensed User
Longtime User
It is running now.
Very simple.
Just a question ? Where are you located ? I saw an answer in good portuguese. Are you in Brazil ??
I am asking because my credit card only accept US$ convertions, not euros.. Is there any way I can pay for it in US$ directly ?
 

cas6678

Active Member
Licensed User
Longtime User
Hi Alberto.
I set your 1.07 library as you suggested.
Im trying to use "CloudMQTT"

B4X:
Dim strBroker As String    = "m10.cloudmqtt.com:17612"
   Dim strUsername As String  = "XXXXXXXX"
   Dim strPassword As String  = "XXXXXXXXX"
   Dim bRet As Boolean = objMqtt.Connect(strBroker,"1",strUsername,strPassword)

"1" might be Client ID, is right?
But each time i clicked Connect button i received this log error.
Could you suggest me what am i missing?


EDIT: Same issue with my RPi as MQTT broker running mosquitto at ip:1883.
 
Last edited:

cas6678

Active Member
Licensed User
Longtime User
Now works well!!!
I need to compare your last Sample with the old one.
More questions when i find differences.
Thanks!!
 

Doñate

New Member
Licensed User
Longtime User
Hi Alnerto, I like your library, I test here: http://cloud.iot-playground.com/ and work very well when I publish and subscribe.

I will a make a donation later next week, when I do this, you still send me a library without "Donationware" right ?

Thanks in advance!
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hello my friend, I'm not using B4x anymore, you can compare with this library, I create mine based on this: org.eclipse.paho.client.mqttv3

 

amorosik

Expert
Licensed User

Also jMqtt is based on this project, then is difficult find pro/cons of jMqtt vs your library
"..I'm not using B4x anymore.." can we know if you have moved to other developer enviroment?
 

amorosik

Expert
Licensed User
Hi Alberto, could you tell me if your library, based on the Eclipse Paho project, allows automatic client reconnection, and high availability (alternative server use if main not available)?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…