MQTT broker

51 views
Skip to first unread message

sabiha patan

unread,
Oct 21, 2016, 1:09:10 AM10/21/16
to MQTT
is it possible to process at broker by making changes in configuration file?

ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)

unread,
Oct 21, 2016, 1:10:53 AM10/21/16
to mq...@googlegroups.com

Can you please describe 'process at broker' ?

Pardon brevity, typos and grammar mistakes. Sent from phone.


On 21 Oct 2016 10:39, "sabiha patan" <sabiha...@gmail.com> wrote:
is it possible to process at broker by making changes in configuration file?

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

sweety

unread,
Oct 21, 2016, 1:51:04 AM10/21/16
to MQTT
Let's say a publisher is publishing LDR values to broker and that broker sends LDR values to a subscriber. It's like broker sends whatever it receives. My subscriber does not want all LDR values it just wants LDR value above some threshold. For that, broker should do processing and sends values above the threshold. Is it possible? 

ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)

unread,
Oct 21, 2016, 3:28:56 AM10/21/16
to mq...@googlegroups.com

A broker - in general sense of the word - simply establishes communication between two or more parties. So embedding logic at the broker, to compare values against a threshold is not right. For example, think of scalability of the logic.

A better approach would be to have a subscribing application to process the messages and publish onto a different topic to which your end application would subscribe. Examples of subscribing applications would be IBM Node-red, IBM IIB, etc.

Regards,
Nagesh Subrahmanyam

Pardon brevity, typos and grammar mistakes. Sent from phone.

--

Paul Fremantle

unread,
Oct 21, 2016, 3:44:16 AM10/21/16
to mq...@googlegroups.com
Nagesh

I agree completely with the model of republishing the subset of filtered data onto a new topic. 

However, there are some brokers that offer plugins that do the function you need. Alternatively, it is possible to embed a broker into and existing system 
to do that kind of stuff. I have used Matteo Collina's aedes to do that kind of thing and it works quite well.

Paul
--
Paul Fremantle
Part-time PhD student - School of Computing
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
Co-Founder, WSO2
Apache Member and Committer
07740 199 729

ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)

unread,
Oct 21, 2016, 4:22:47 AM10/21/16
to mq...@googlegroups.com

Hi Paul,
+1 on the plugin architecture.

Regards,
Nagesh Subrahmanyam

Pardon brevity, typos and grammar mistakes. Sent from phone.

sweety

unread,
Oct 21, 2016, 4:53:30 AM10/21/16
to MQTT
What is plugin architecture and how it could be implemented at mosquitto broker?


On Friday, October 21, 2016 at 10:39:10 AM UTC+5:30, sweety wrote:
Reply all
Reply to author
Forward
0 new messages