mqtt

How to connect to my MQTT Broker in Openshift

…衆ロ難τιáo~ 提交于 2019-12-08 05:44:36
问题 Following these two tutorials (https://www.anavi.org/article/182/ and http://wei-meilin.blogspot.tw/2014/05/red-hat-openshift-xpaas-simple-mqtt.html) I have installed a MQTT Broker using JBoss Fuse. Although my mqtt-container disappears after a while (I don't know why) I can make a port-forwarding and test the broker. But I would like to know how to connect directly to the broker. Do you know how to do it? I have tried this tutorial (http://training.runcloudrun.com/advanced/16-Network-and

Arduino Knolleary PubSubClient will publish messages but can't receive them

可紊 提交于 2019-12-08 04:40:59
问题 I am using the Knolleary PubSubClient to make a connection to my MQTT server. I have been able to successfully authenticate and make a connection after not much work. I can even publish messages to topics. However, the issue I am having is that I can subscribe to topics and get no error, but when I publish to that topic (from mosquitto on my Mac) the callback does not get called and the message to the subscribe topic does not appear to be received. I have tried running a mosquitto

Trying Mqtt connection on Android using Paho MqttClient

放肆的年华 提交于 2019-12-08 04:18:45
问题 When you first open the app I want a screen where you can enter the broker information and click try and save. When clicking try it should just show a Snackbar saying if the information makes for a successful connection. This is the code I call when the try button is pressed: private void tryConnection(View v){ if(verifyInputs()){ Snackbar.make(v, getString(R.string.trying_connection), Snackbar.LENGTH_LONG).show(); String clientId = MqttClient.generateClientId(); MqttAndroidClient client =

Push notification on android: IBM MQTT

我的梦境 提交于 2019-12-08 03:31:12
问题 I am very new to android environment and have to set up client side using the (wmqtt.jar) sample application given on http://www-01.ibm.com/support/docview.wss? I know only about hello world program. Kindly tell how can I integrate it in my simple android application, step by step. Thanks and Regards. 回答1: There is a good example and run through at http://dalelane.co.uk/blog/?p=1599 I'd also point out that you might be better off with the recently released open source Java client. You can

The callBacklistener is called Twice?

风流意气都作罢 提交于 2019-12-08 03:15:58
问题 In the below, when i run it and intentionally turn the WiFi off, the callBack clientCallBack.connectionLost displays the message Log.d(TAG, "@connectionLost: MQTT Server connection lost"); twice. And When I re connect, the message Log.i(TAG, "@onSuccess: Connection Successful."); in the client_1.connect callback is displayed only once. anyone can expain why i receive the message from the calback twice? Code @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

Mosquitto socket read error Arduino client

北城余情 提交于 2019-12-08 03:06:29
问题 I have just downloaded the latest Arduino Library code from Github, and it's broken my MQTT client program. I'm using PubSubClient 1.91 on Arduino, and Mosquitto 1.1.2 (Build 2013-03-07) on Mac OSX. (I also tested against Mosquitto on Windows 7, same problem.) The supplied Mosquitto clients work fine, (Mac over to Windows, Windows over to Mac) so it's some problem with what's coming from the Arduino end. A wireshark trace shows the Arduino client sending the following data packet: 10:15:ff:ff

AWS IoT login from android MQTT client using IAM is not working

纵饮孤独 提交于 2019-12-07 20:25:29
问题 I have been trying to connect my android application to AWS IoT portal. I have created an IAM account, which has a username and password. I have gone through the documentation but I could not see any proper guideline. I read somewhere that I can access the IoT devices through IAM/Cognito/using a certificate. Since I am an Android user I can't(I don't want to) use a device certificate. Can I use my IAM credentials to access my AWS IoT devices? I have downloaded all sample application and I

MQTT Service for iOS Push Notifications

孤街醉人 提交于 2019-12-07 20:21:19
问题 The low reliability of GCM on Android is such that I have moved to another service to handle push messages: Pushy, (https://pushy.me/) The service relies on MQTT, and from my experience as well as many other reviews, the real time feature-set holds up to its name and rarely does a message get dropped. However, contacting support, they noted that there is no iOS integration and only support Android. I have searched widely but have not found a suitable replacement for iOS that supports MQTT out

Does Eclipse Paho Mqtt Client persist all the published messages published till they are ACKed for delivery by the broker under QoS-2?

南楼画角 提交于 2019-12-07 17:38:51
问题 Does the default PAHO MQTT implementation persist all the messages that are being pushed, until their delivery is confirmed specifically in QoS 2 ? Or if not how is it possible to implement such by our own? UPDATE Since paho android service version 1.1.0 automatic reconnect and offline buffering features are implemented. For more info : https://www.eclipse.org/paho/clients/android/ 回答1: From the javadoc for MqttClient By default MqttDefaultFilePersistence is used to store messages to a file.

Eclipse paho Mqtt:Getting java.io.EOF Exception

天大地大妈咪最大 提交于 2019-12-07 17:31:28
问题 I am getting "java.io.eof" exception,when i am trying to subscribe mqtt client. I am using eclipse paho library and using mosquitto broker. I am not getting any answer of this,so please help me why this happens ? Mqtt connection and subscribe I am using this code for connecting and subscribing to mosquitto private void buildClient(String clientId){ log.debug("Connecting... "+clientId); try { mqttClient = new MqttClient(envConfiguration.getBrokerUrl(), clientId,new MemoryPersistence()); System