Closed amindadgar closed 1 year ago
Hi @amindadgar
Sorry for the delayed response.
You seam to use SSL/TLS (.sslWithDefaultConfig()
) but connect to port 1883. MQTT over SSL/TLS usually uses port 8883.
This might be the cause for your connection reset.
Hi @amindadgar - since this issue hasn't had any updates, I will close it out. If this issue (or another) still exists, feel free to file a new one and we'd be happy to help out!
Expected behavior
Connect to the MQTT server with no problem and publish two messages, one with the topic AndroidApp and the other in publish function. Log:
Actual behavior
Could not connect to the MQTT server and log the below texts.
To Reproduce
Just running the code.
Steps
compile and run the code on my galaxy mini s5570, with custom rom cyanogen mod ( Android 4.4.2 ).
Reproducer code
Details
Note that My arduino boards are communicating perfectly with my MQTT server. ( raspberry pi server is local ) Also I have checked another application using org.eclipse.paho.client.mqttv3 for another app it was working with no problem with my galaxy mini phone. ( The problem with the last library was it keeps disconnecting after some time )
Any help would be appreciated 🙂