Questions tagged [emq]

EMQ (EMQX) is a distributed, massively scalable, highly extensible MQTT message broker written in Erlang/OTP.

Official Resources

69 questions
1
vote
1 answer

Errors occurred when EMQ started after adding plug-ins: You've tried to set XXX, but there is no set with that name

I use emqttd-windows 10-v2.3.11 I want to load custom plug-ins in EMQTT. I placed the plug-in file under the EMQTT\emqttd-windows10-v2.3.11\emqttd\lib directory and the configuration file under the EMQTT\emqttd-windows 10-v2.3.11\emqttd\etc\plugins…
1
vote
0 answers

letsencrypt ssl on emqtt

I am using Emqtt 2.3.3version. I'm trying to implement ssl using lets encrypt. I am using below steps to implement the same sudo apt-get update,sudo apt-get install software-properties-common,sudo add-apt-repository ppa:certbot/certbot,sudo apt-get…
satish pujara
  • 219
  • 1
  • 11
1
vote
0 answers

EMQ is not connecting to client after enabling emq_web_hook plugin

I am running my emqtt broker by docker image. I am trying to catch all messages published on my broker and all acknowledged messages. For this purpose I am trying to use emq_web_hook plugin but when I enabled this plugin from dashboard, client…
Unknown
  • 373
  • 1
  • 4
  • 15
1
vote
1 answer

EMQTT - emq_plugin_template POST to API (SQL) issue with gateway client only

I have followed a tutorial from Ravi Pujar on passing MQTT messages to SQL using EMQ and an api interface (he has also got some help from here to make the relevant plugin work). I am entirely new to Erlang + EMQ, any help on resolving why only my…
1
vote
0 answers

Testing a MQTT Broker By Connecting 100,000s of Clients

I have been working on MQTT protocol for quite some time. This protocol would be used by the organisation for sending acknowledgment messages to each client separately. In the use-case, there is only 1 'publisher' client which publishes…
sourabh gupta
  • 61
  • 1
  • 9
1
vote
1 answer

How to shorten the time where MQTT broker checks for the connection state of a client

I am currently using EMQ as our MQTT broker. I need to get the latest "online" or simply the connection state of a client as quick as possible. Currently, I let my backend run a single client which subscribes to a $SYS topic, where the connection…
JLT
  • 3,052
  • 9
  • 39
  • 86
1
vote
1 answer

Bumping max_fds for erlang vm

I have an emqtt instance installed on gcloud. I have to modify the maximum number of file descriptors for erlang vm. I have already made all the changes for the host VM but can't seem to figure out how I would change max_fds for the emqtt vm. There…
farazmateen
  • 157
  • 9
0
votes
0 answers

Mosquitto bridge how to clear retained message on local broker which are cleared in the remote broker

I have set up a MQTT bridge using a mosquitto broker. Config: connection bridge-01 address url:1883 try_private true cleansession true topic posttopic1 in 0 "" topic1 remote_username username remote_password password Everything works fine,…
Finitely Failed
  • 119
  • 3
  • 14
0
votes
1 answer

LWT with user properties (timestamp): disconnect ungracefully

MQTT newbie here Developing on .NET with MqttNet library for EMQX broker: I am using MQTTv5 feature 'user properties' to add a timestamp to my messages when published. That is working flawlessly. However, I need to stamp the LWT messages too. In my…
Master Azazel
  • 612
  • 1
  • 12
  • 32
0
votes
1 answer

EMQX- Publish MQTT Topic with unique identifier is taking much more time than Static MQTT Topic

I was trying to publish messages on emqx broker on different topics.Scenario takes much time while publishing with dynamic topic with one client and if we put topic name as static it takes much less time. Here I have posted result and code for the…
0
votes
1 answer

Is it possible to make two-way SSL asynchronous?

Is it possible to make two-way SSL asynchronous? After the client verifies the server ssl certificate is correct, it can establish a connection successfully and the client can start to publish messages. This process is like one-way SSL. Then the…
msl12
  • 48
  • 8
0
votes
1 answer

Nodejs Cluster with MQTT client

I have a nodejs engine that uses MQTT to subscribe to messages from many IoT devices. As the number of IoT devices has increased, I want to run the nodejs engine in a cluster mode. This results in every cluster receiving all the MQTT messages. Is…
0
votes
1 answer

Docker-compose EMQX bridge (MQTT bridging) setup

I am trying to create an EMQ X bridge setup (MQTT bridging) using only docker-compose. As a reference i am looking at the official docs. The use case i have in my mind is bridging EMQ X Edge (emqx-edge) to EMQ X (emqx), and then when a message is…
0
votes
1 answer

after reconnection subscriber does not getting messages

N.B. I am using EMQX as broker and python-paho as the client library. I am not sure which one is responsible for this problem. If the publisher does not send any message for some time, the subscriber gets disconnected but also gets re-connected…
Mainul
  • 13
  • 5
0
votes
1 answer

Best way to load balance MQTT is cluster or Bridge and why

One or more MQTT brokers could be bridged together. Bridge forward PUBLISH message from one broker node to another. [1] Clustered nodes will share/copy the same topics tree, but bridge nodes will not. What is the protocol used to share the same…
LahiruJ
  • 53
  • 8