Giter Club home page Giter Club logo

android-mqtt-quickstart's People

Contributors

amindadgar avatar bytehala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-mqtt-quickstart's Issues

Failed to push messages in loop with QOS=2

i tried to publish message in loop to check load on broker. but only 20 messages pushed successfully when pushed 100 messages.

But working fine while sending with QOS = 0 ; i tried 2000 messages, that was working fine and delivered all messages.

Help

I got this problem"Error:(org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence$2) that doesn't come with an
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:indicate that it is not an inner class.
Error:compiler that did not target the modern .class file format. The recommended
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:this warning is that reflective operations on this class will incorrectly
Error:this warning is that reflective operations on this class will incorrectly
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:indicate that it is not an inner class.
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lorg/eclipse/paho/client/mqttv3/MqttCallback;
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_77\bin\java.exe'' finished with non-zero exit value 2
:app:transformClassesWithDexForDebug FAILED"

Grabbing messages in ConnectionDetailsActivity.java

Hi, first of all, thank you for creating this project. It's been so helpful to learn android while developing an MQTT app.

In ConnectionDetailsActivity.java I am trying to get the messages received from the MQTTCallbackHandler.java.

I believe the code for it resides in:
public void run() {

      connectionDetails.invalidateOptionsMenu();
      ((HistoryFragment) connectionDetails.sectionsPagerAdapter
          .getItem(0)).refresh();

      updateButtons();

    }

I created several logs to figure out where that data is, but I just have been unable to find it.

I tried:
Log.v(((HistoryFragment) connectionDetails.sectionsPagerAdapter
.getItem(0)).getArguments().toString(),"Arguments");

but am still unable to figure out where it is.

The goal is to listen to the subscribed message and update the status of a button on the screen.

In the MQTTCallbackHandler, I was able to identify that it is stored in args[0], but when it is passed to c.addAction(messageString) I don't know where it ends up for me to read in ConnectionDetailsActivity.java.

Thank you for your help!

WEAR OS IMPLEMENT

Hi, sorry, maybe this is not the right section ... I tried your project on my Xiaomi note 5 mobile and it works very well. I recently carried out an IOT project with arduino for opening an electric gate via a WiFi relay card that uses an integrated ESP8266 programmed with arduino and controlled via the MQTT protocol. I also tried to make a small android app that uses the PAHO library and now I wanted to try to do something through my huawei watch 2 smartwatch with Wear OS 2.0. I tried to do something but even if there are no compilation errors (Android Studio), it doesn't want to know how to work. I wanted to ask you if you planned something for Wear OS ... Thanks a lot.

SSL connection to a mosquitto broker using self-signed certificate

Hi, I'm trying to understand how I can connect in a secure way to a mosquitto broker, running on a Raspberry PI. I have configured mosquitto to ask for valid certificates, signed by my own CA. Now I'm looking in your Android Studio project and I have found the Advanced activity in which it's possible to set the SSL flag and to insert a file path. Which file does it ask for? I'm in possess of .crt and .key files for the client, but I think the application needs something different.
Thank you in advance for your help!
David

Connection issue

When I try to connect with port 8000 it will not connected it gives connection issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.