how to experiment the server and client code on linux os.

Asked by sjtech

Hello sir,
I would like to simulate the client and server communication on linux os.

can you please provide me like to download client and server source code?

As per my knowledge client will send data to the server using the MQTT protocol and server will decode it or show it on terminal or will send it to the respective subscribe.

thanks,
SJ

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
sjtech
Solved:
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

I'm not really sure what you're asking.

If you are using ubuntu, you can install the mosquitto broker and
clients as follows:

apt-get install mosquitto mosquitto-clients

Then subscribe to a topic:

mosquitto_sub -t question/230180

and publish something to it:

mosquitto_pub -t question/230180 -m "here is the answer"

Does that help?

On Tue, Jun 4, 2013 at 3:46 PM, sjtech
<email address hidden> wrote:
> New question #230180 on mosquitto:
> https://answers.launchpad.net/mosquitto/+question/230180
>
> Hello sir,
> I would like to simulate the client and server communication on linux os.
>
> can you please provide me like to download client and server source code?
>
> As per my knowledge client will send data to the server using the MQTT protocol and server will decode it or show it on terminal or will send it to the respective subscribe.
>
> thanks,
> SJ
>
> --
> You received this question notification because you are a member of
> Mosquitto PPA, which is an answer contact for mosquitto.

Revision history for this message
sjtech (sjtech9) said :
#2

I have downloaded application source code from http://mosquitto.org/download/ and able to do Pub ->> Broker ->> Sub Path successfully.