mqtt

Is AWS IoT Device Gateway an MQTT broker?

时光毁灭记忆、已成空白 提交于 2020-01-01 09:12:13
问题 I am trying to understand Amazon AWS IoT and I see there is a Device Gateway connected between Sensors/Actuators and AWS (Rules Engine). I understand Sensors/Actuators are MQTT Clients which can Publish/Subscribe to the topics. Device Gateway also supports Publish/Subscribe pattern is that means Device Gateway is also a MQTT Client ? Then where is the MQTT broker? OR Device Gateway is Broker + communication interface to AWS-IoTservices? I have attached an Image Amazon presentation on AWS IoT

Is AWS IoT Device Gateway an MQTT broker?

本小妞迷上赌 提交于 2020-01-01 09:12:05
问题 I am trying to understand Amazon AWS IoT and I see there is a Device Gateway connected between Sensors/Actuators and AWS (Rules Engine). I understand Sensors/Actuators are MQTT Clients which can Publish/Subscribe to the topics. Device Gateway also supports Publish/Subscribe pattern is that means Device Gateway is also a MQTT Client ? Then where is the MQTT broker? OR Device Gateway is Broker + communication interface to AWS-IoTservices? I have attached an Image Amazon presentation on AWS IoT

Receive offline messages mqtt

穿精又带淫゛_ 提交于 2020-01-01 03:43:06
问题 I'm using mosquitto as broker and paho(python) as client. I'm trying to make subscriber to receive offline messages. For that I made following changes: Fixed client ID qos level 2 but, still the subscriber is not able to receive messages. any help? Thanks, Rahul 回答1: In order to have your client as a durable client and receive messages that were sent to topics when it was offline, you need to meet the following criteria: Fixed client ID (as you've done) Always connect with clean_session=False

ESA2GJK1DH1K升级篇: 网页实现MQTT控制- 网页版MQTT调试助手

馋奶兔 提交于 2019-12-31 12:32:40
前言   这节的网页版调试助手是为了让大家学习一下用网页实现MQTT通信   为咱后期学习 数据篇,微信小程序篇,微信公众号篇里面的网页实现远程控制做准备   毕竟现在物联网做的最多的是 B/S架构 提示   为了让大家都可以使用,可以把网页代码拷贝到云端的Web服务器            拷贝到云端      故: http://47.92.31.46/MqttDebugWeb 这是我的,   路径和IP根据自己的就可以访问到 效果    以下信息根据自己的填写   提示:ClientID 默认是时间戳加16位随机数   如果自己填写,将使用自己填写的    连接订阅    发送字符串数据    发送16进制数据    来源: https://www.cnblogs.com/yangfengwu/p/12123787.html

Paho MqttAndroidClient.connect always fails

痞子三分冷 提交于 2019-12-31 10:48:13
问题 I'd like to publish messages from an android service to a local server. Here is parts of my code in the simplest form based on snippets from here. MemoryPersistence memPer; MqttAndroidClient client; @Override public IBinder onBind(Intent intent) { memPer = new MemoryPersistence(); client = new MqttAndroidClient(this, "tcp://192.168.1.42:1883", "clientid", memPer); try { client.connect(null, new IMqttActionListener() { @Override public void onSuccess(IMqttToken mqttToken) { Log.i("MQTT",

Paho MqttAndroidClient.connect always fails

偶尔善良 提交于 2019-12-31 10:46:50
问题 I'd like to publish messages from an android service to a local server. Here is parts of my code in the simplest form based on snippets from here. MemoryPersistence memPer; MqttAndroidClient client; @Override public IBinder onBind(Intent intent) { memPer = new MemoryPersistence(); client = new MqttAndroidClient(this, "tcp://192.168.1.42:1883", "clientid", memPer); try { client.connect(null, new IMqttActionListener() { @Override public void onSuccess(IMqttToken mqttToken) { Log.i("MQTT",

Paho's MQTT client disconnects after the device locks

限于喜欢 提交于 2019-12-31 05:03:45
问题 I'm currently working on a small "Panic Button" app supposed to operate in a medical facility. As one of the project's assumptions is to be Internet-independent, I've decided to go for MQTT with a server set up in the local WLAN. I've implemented the Paho Android Service and it works pretty good. Up to a certain point. Once I lock the device and turn off the sreen, exactly after one minute the client gets disconnected. As I've set MQTT options to KeepAlive interval of 30s, this must be caused

微信小程序使用mqtt.js支持wss

梦想与她 提交于 2019-12-30 19:15:02
mqtt也可以支持wss,具体如何操作: 服务端配置 在服务器上装个nginx,nginx.conf配置如下: 因为我用的是rabbitmq的rabbitmq_web_mqtt,所以我的配置路径是下面的地址,也可根据自己的mq地址来 location /mqttwss { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:xxx/ws; proxy_http_version 1.1; proxy_set_header X-Client-IP $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 300s; # 默认是60秒,可设置 } 客户端配置: var mqtt = require('mqtt') let option={ host: "www.xxx.xxx", port: xx, keepalive: 15, username: "username", password: "password", port:443, path:"/mqttwss" } let mqttClient = mqtt.connect("wxs://"

C# MQTT 客户端 服务端实现

邮差的信 提交于 2019-12-30 19:14:37
废话懒得说,调用的第三方的库。NUGET下载MQTTnet即可。 这个库作者老是升级,而且版本之间老是不兼容。 UI如下 下面是主要代码。 using MQTTnet; using MQTTnet.Client; using MQTTnet.Protocol; using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MQTTClient { public partial class FrmMain: Form { private MqttClient mqttClient = null; public FrmMain() { InitializeComponent(); } /// <summary> /// 客户端配置信息 /// </summary> private IMqttClientOptions Options { get {

mqtt communication between node.js and java

一笑奈何 提交于 2019-12-30 13:40:48
问题 Goal is to send data using mqtt protocol. Java project (tempSensor) produce tempvalue using mqtt protocol and node.js which subscribe tempvalue using mqtt. Both node.js and java project use same key for publish/subscribe. I am able to publish data using java project and also subscribe data in node.js. But data is not in readable format. How to do it ? So that data is in readable format. Structure for TempStruct is as below: public class TempStruct implements Serializable { private static