Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Arduino Project using MQTT(Need confirmation as to whether I am doing it right.)
icon4.gif  Arduino Project using MQTT [message #1718899] Fri, 01 January 2016 18:56 Go to next message
Chetan Chavan is currently offline Chetan ChavanFriend
Messages: 1
Registered: January 2016
Junior Member
Hi!

I am very new to MQTT protocol and to better understand it, have undertaken a project as part of an internship in an IT company. I have been reading and watching videos on MQTT which have given me an idea of its working and implementation. As far as I have understood it, I first describe the problem statement and then the solution which I have devised. I just need your consent on the approach I am about to take as I don't want to waste money and time.

Problem Statement: Implement MQTT stack (Simple enough!)

I am using two Arduino MEGA boards and two Ethernet shields on the same.

Solution: I have proposed two solutions to the problem which are as follows:

1. We can just use two boards as clients (strictly, one as a publisher and the other as a subscriber) and use open source broker's such as HIVEMQ, www.m2m.in , Mosquitto (From Eclipse), etc., for communication?
If we go for the above mentioned thing, the programs would be the only task to do with the open source server (broker) and libraries in ide sketches taking care of the protocol specifications. So, can I go forward with this? If we follow this method, there is no need for us to go with the "Board-Makeup" process I suppose i.e, any specific arrangements which are needed to make the board ready for socket programming?

2. The other alternative would be to use three different boards; two for clients 1 & 2, the remaining one for the broker. In this case, the programs would be written to implement payload data and topic together with publishing as a programme on one of them. The broker would receive it which essentially acts as a server, store the published data in a database and depending on the subscriber program written for the other client, transmits the published data depending upon the topic.

Which one would be the best and feasible one!

Thanks in advance.
Chetan.
Re: Arduino Project using MQTT [message #1718928 is a reply to message #1718899] Sat, 02 January 2016 20:26 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 01/01/2016 03:01 PM, Chetan Chavan wrote:
> Hi!
> I am very new to MQTT protocol and to better understand it, have
> undertaken a project as part of an internship in an IT company. I have
> been reading and watching videos on MQTT which have given me an idea of
> its working and implementation. As far as I have understood it, I first
> describe the problem statement and then the solution which I have
> devised. I just need your consent on the approach I am about to take as
> I don't want to waste money and time.
>
> Problem Statement: Implement MQTT stack (Simple enough!)
>
> I am using two Arduino MEGA boards and two Ethernet shields on the same.
>
> Solution: I have proposed two solutions to the problem which are as
> follows:
>
> 1. We can just use two boards as clients (strictly, one as a publisher
> and the other as a subscriber) and use open source broker's such as
> HIVEMQ, www.m2m.in , Mosquitto (From Eclipse), etc., for communication?
> If we go for the above mentioned thing, the programs would be the only
> task to do with the open source server (broker) and libraries in ide
> sketches taking care of the protocol specifications. So, can I go
> forward with this? If we follow this method, there is no need for us to
> go with the "Board-Makeup" process I suppose i.e, any specific
> arrangements which are needed to make the board ready for socket
> programming?
>
> 2. The other alternative would be to use three different boards; two for
> clients 1 & 2, the remaining one for the broker. In this case, the
> programs would be written to implement payload data and topic together
> with publishing as a programme on one of them. The broker would receive
> it which essentially acts as a server, store the published data in a
> database and depending on the subscriber program written for the other
> client, transmits the published data depending upon the topic.
> Which one would be the best and feasible one!
>
> Thanks in advance.
> Chetan.

This forum is not for general programming questions. You'll want to cozy
up to stackoverflow.com or other such forums for this.
Previous Topic:Download Android Library?
Next Topic:Why is Eclipse windowing so weird?
Goto Forum:
  


Current Time: Thu Mar 28 08:21:43 GMT 2024

Powered by FUDForum. Page generated in 0.03922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top