mqtt

How to publish a message to a specific client in Mosquitto MQTT

北城余情 提交于 2019-11-29 14:14:25
Currently we have an app that controls multiple devices through MQTT. Each device subscribes to a unique topic which is named after their device ID. For example, device A has device ID 123 so it will subscribe to topic 123. Then if the app wants to publish control message to device A, then it will publish a topic named 123, which is the device ID of device A. By doing this, if we have 1000 devices then we will have 1000 topics. This is a really bad design. So we are thinking that maybe we can publish a topic to a specific client by setting the client ID that will receive the topic since each

how to use ssl/tls in paho mqtt using python i got certificate verify failed

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:56:34
hi I am working on IOT internet of things I am using paho MQTT I need to use SSL I wrote publish code using python I got an error in "certificate verify failed" please help me thank in advance MY PUBLISHING CODE import time import paho.mqtt.client as paho import ssl import certifi #define callback def on_message(client, userdata, message): time.sleep(1) print("received message =",str(message.payload.decode("utf-8"))) client= paho.Client("client-001") client.on_message=on_message print("connecting to broker ",) client.tls_set("C:/Windows/system32/config/systemprofile/Desktop/attachments/server

Read .db file in Mosquitto

偶尔善良 提交于 2019-11-29 11:05:38
I'm using Mosquitto Project (http://mosquitto.org), this is my mosquitto.conf persistence_file mosquitto.db persistence_location C:/var/lib/mosquitto/ After running, I have got mosquitto.db, but I can't open it. I'm trying open with Microsoft Excel, sqlitebrowser_200_b1_win but it's not working. Please help me. Thanks in advance I just answered this same question on the mosquitto answers tracker: https://answers.launchpad.net/mosquitto/+question/217523 The mosquitto.db file holds internal persistence information on client subscriptions and retained messages. It isn't intended for use outside

Paho MQTT Android Service Issue

為{幸葍}努か 提交于 2019-11-29 09:36:35
问题 I am implementing the Paho MQTT Android Service within an application I am developing. After testing the sample application provided by Paho, I have found that there are a few things that I would like to change. https://eclipse.org/paho/clients/android/ The applications service appears to shut off once the application is fully closed. I would like to keep the service running even after the application closes in the event more messages come in. I also am looking for a way to open the

What is the use/purpose of MQTT QoS?

故事扮演 提交于 2019-11-29 09:23:15
问题 I am studying the MQTT protocol and it seems that there is a contradiction in the very first lines of the specs: The protocol runs over TCP/IP, or over other network protocols that provide ordered, lossless , bi-directional connections. Its features include: [...] Three qualities of service for message delivery: "At most once", where messages are delivered according to the best efforts of the operating environment. Message loss can occur . This level could be used, for example, with ambient

Emqtt的ssl/tls加密

て烟熏妆下的殇ゞ 提交于 2019-11-29 07:43:11
继上个星期之后,这个星期有花了两三天的时间来搞emqtt的ssl/tls加密。 主流程还是参考了: https://blog.csdn.net/a704397849/article/details/88885198#commentsedit , 到最后一步用mosquitto_sub订阅消息的时候始终有问题: 联系了参考文章的作者,并且加了QQ,想不到是个很热情的人。他重新走了一下流程并且确定是没有问题的,给了我一份客户端的代码: package com.zkong.mqttssl; import org.eclipse.paho.client.mqttv3.*; import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence; import javax.net.SocketFactory; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java

EMQ 9 月 新发 | EMQ X Enterprise 3.4.0 功能概览

泪湿孤枕 提交于 2019-11-29 07:24:55
9 月正式开启,EMQ 发布了 EMQ X Enterprise 3.4.0 正式版。该版本强化了管理配置和规则引擎功能,新增消息编解码、集群热配置及车联网协议支持,设计了全新的管理监控 Dashboard 页面,是目前企业应用推荐使用的稳定版本。 相关安装包已在 EMQ 官网 开放下载,同时官网提供 License 免费自助申请试用、在线购买 License 授权服务。 EMQ X Enterprise 企业级物联网 MQTT 消息平台,支持百万级物联网设备一站式接入、MQTT&CoAP 多协议处理、低时延实时消息通信。支持基于 SQL 的内置规则引擎,灵活处理/转发消息到后端服务,存储消息数据到各种数据库,或桥接 Kafka、RabbitMQ、Pulsar 等企业中间件。 EMQ X Enterprise 适用于各种物联网应用场景,助企业快速构建物联网应用,并支持公有云、私有云、物理机、容器/K8S 任意部署。 全新的 Dashboard UI 在以往版本的 EMQ X 里 EMQ 围绕 MQTT 消息接入,拓展了一系列方便快速构建物联网应用的基础功能,如认证鉴权/ACL,数据持久化和消息桥接(企业版)并集成至 Dashboard 中。 为了支撑更多新功能的引入及功能引入后系统易用性、监控管理能力的同步改进提升,EMQ 开发团队率先针对企业版设计了全新的 Dashboard

2019重庆智博会 - EMQ 联合 Intel 展示物联网 MEC 边缘设备接入及管理平台

扶醉桌前 提交于 2019-11-29 05:56:01
2019中国国际智能产业博览会(以下简称2019智博会),于2019年8月26日至29日在重庆国际博览中心举行。应智博会组委会邀请,英特尔公司在出席展会并打造了“英特尔智能创新展区”。 英特尔智能创新国际展区依托重庆智博会汇聚顶尖科技创新项目,展示前沿科技应用,打造智能化和多元化的智慧未来场景与社区。 值得注意的是,“英特尔智能创新展区”展示了 EMQ 物联网 MEC 边缘设备接入及管理平台。 EMQ 公司简介 EMQ(杭州映云科技有限公司 www.emqx.io)是为一家面向 5G 和物联网市场的消息与流处理开源软件公司。2013年,EMQ作为开源项目在 Github( https://github.com/emqx)上发布,后续发展成为全球市场广泛应用的开源 MQTT 消息服务器。2017年,在客户需求快速增长的驱动下,公司进入商业化运营并推出 EMQ X 商业产品,以加快开源项目的产品化部署应用,为大型企业客户提供专业技术支持与服务。目前 EMQ X 全球用户超过5000家企业,其中全球500强客户达到数十家。 EMQ MEC 边缘接入解决方案 5G 时代的物联网,MEC(多接入边缘计算)技术是主要的业务承载架构。超低时延与海量设备接入业务场景下,靠近用户与数据的位置实现业务的本地处理的需求越来越明显。如何在用户需求动态出现的边缘快速实现业务接入

What is the maximum message length for a MQTT broker?

冷暖自知 提交于 2019-11-29 05:54:02
问题 I am using the node.js mosca MQTT broker for some internet of things (iot) application. https://github.com/mcollina/mosca What is the maximum message length that a topic can receive for the mosca broker? What are the factors that constrain the message length? If I want to increase the message length, is there a configuration parameter I can modify or which part of the code can I change? 回答1: It's not entirely clear what you're asking here, so I'll answer both possibilities. The length of the

MQTT client for iPhone

て烟熏妆下的殇ゞ 提交于 2019-11-29 03:51:00
问题 I am trying to follow this blog for building push services for iPhone. The blog uses Android as the working platform,but it can be migrated to iPhone too, provided I get an MQTT client in objective C..which I cant find anywhere. The closest I got to this is : I got a C implementation here - libmosquitto This post says I can use something like an HTTP bridge. Can anyone please help me exploit these two options ? I dont know the next step to take :( Thanks !! 回答1: The HTTP option would not help