Questions tagged [android-mqtt-client]

12 questions
2
votes
1 answer

Unable to connect to localhost using mqtt_client

I have a local mosquito broker. an app on a phone( not an emulator). I am trying to connect to the local broker with no success via WebSockets. I found some examples in the documentation but when I change URL and switch to WebSockets then I am…
bihire boris
  • 1,530
  • 3
  • 19
  • 44
2
votes
0 answers

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++ after close the app

I use pahoo mqtt on android side and implement it on flutter to make it run when the app was closed. However the client are still connected and still get the message from brokker after i close the app. But when i open the app again it seems it…
1
vote
0 answers

Where to create a MQTT/Socket connection in android?

I am working on an app which receives realtime updates from the server and which will be using MQTT or Socket connection(TBD) to receive the realtime updates from the server. This manager will be responsible for receiving all the realtime updates…
1
vote
1 answer

Flutter MQTT disconnect immediately after connecting

I am using the mqtt_client package for my project (this is my first project in MQTT). my code is below. import 'dart:io'; import 'package:mqtt_client/mqtt_client.dart'; import 'package:mqtt_client/mqtt_server_client.dart'; enum…
1
vote
2 answers

How to subscribe mqttClient for particular duration while reading mqtt messages

I am new to MQTT and I have some questions that I hope you guys could help me with. I'm working on a project that will require me to utilize the MQTT protocol and the program needs to be written in java(Just some background info) Can a MQTT client…
1
vote
2 answers

Mqtt Android PahoClient Connection Issue

Hi I am using Android paho library for getting connect with an mqtt server. My app level Gradle side Code : implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0' implementation…
Sonia John Kavery
  • 2,099
  • 2
  • 20
  • 36
0
votes
0 answers

PAHO MQTT Android Integration Issue

I've been working on integrating the PAHO MQTT library into my Android app, and I'm facing an issue that I could use some help with. I followed the code from this GitHub link: https://github.com/eclipse/paho.mqtt.android, but unfortunately, I…
Arbaz.in
  • 1,478
  • 2
  • 19
  • 41
0
votes
1 answer

Hive MqttClient DisconnectedListener takes forever (Android)

I am using the Hive Mqtt Library zu create a mqttclient. I added addDisconnectedListener because i need to change my view according to the connection state. The problem is that the callback is delayed. The callback takes 60 seconds on average to…
froots
  • 53
  • 3
0
votes
1 answer

How to set RETAIN publish message for flutter Mqtt_client

Now I can publish message using this MqttServerClient client = MqttServerClient.withPort(broker, "", 1883); //connect broker //create message final builder = MqttClientPayloadBuilder(); builder.addString(message); client.publishMessage(topic,…
Jedsada
  • 7
  • 3
0
votes
1 answer

mqtt_client cant emit messages on subscribe flutter

I am unable to get messages on subscribe. what am I doing wrong? I am able to register a connection to the broker. I just can't emit any thing in client.updates.listen. also what is the difference between MqttPublishMessage and…
bihire boris
  • 1,530
  • 3
  • 19
  • 44
0
votes
1 answer

Message not received from Android MQTT publish to RabbitMQ

I have set up RabbitMQ, enabled web UI for management, enabled mqtt_plugin and the ports 1883, 8883, 5672, 15672 (Docker). I used Paho MqttClient for Android app I am developing to publish a message to the MQ broker. The connection is fine however,…
Rye
  • 445
  • 4
  • 15
-3
votes
1 answer

I am trying to have an MQTT protocol in android studio. I have also updated gradle.properties

For adding dependency, I added below code to project level gradle file repositories { maven { url "https://repo.eclipse.org/content/repositories/paho-snapshots/" } } and at app level gradle file I added , dependencies { compile…
Yash Zode
  • 57
  • 1
  • 8