Arduino Project using MQTT [message #1718899] |
Fri, 01 January 2016 18:56 |
Chetan Chavan 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 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.08054 seconds