|Re: [mosquitto-dev] Mosquitto pub/sub problem|
I started a new (second) broker on port 1884 and now it works!
However when starting the broker on the default port 1883 I get:
1392986344: mosquitto version 1.3.1 (build date 2014-02-21 12:17:16+0000) starting
1392986344: Using default config.
1392986344: Opening ipv4 listen socket on port 1883.
1392986344: Error: Address already in use
Probably this "Address already in use error" is the cause? What can be the reason for this?
When building the 1.3.1 version what is the meaning of the make WITH_SRV=no flag?
From: Paul Fremantle <paul.fremantle@xxxxxxxxxx>
Reply-To: General development discussions for the mosquitto project <mosquitto-dev@xxxxxxxxxxx>
Date: Wednesday 30 April 2014 12:48
To: General development discussions for the mosquitto project <mosquitto-dev@xxxxxxxxxxx>
Subject: Re: [mosquitto-dev] Mosquitto pub/sub problem
Here is my logs doing exactly the same stuff. Do you also have the server log? As you can see it works perfectly for me with no issues.
mosquitto_sub -d -t sensors/value
Client mosqsub/16156-pauls-air sending CONNECT
Client mosqsub/16156-pauls-air received CONNACK
Client mosqsub/16156-pauls-air sending SUBSCRIBE (Mid: 1, Topic: sensors/value, QoS: 0)
Client mosqsub/16156-pauls-air received SUBACK
Subscribed (mid: 1): 0
Client mosqsub/16156-pauls-air received PUBLISH (d0, q0, r0, m0, 'sensors/value', ... (4 bytes))
Client mosqsub/16156-pauls-air sending PINGREQ
Client mosqsub/16156-pauls-air received PINGRESP
mosquitto_pub -d -t sensors/value -m "test"
Client mosqpub/16180-pauls-air sending CONNECT
Client mosqpub/16180-pauls-air received CONNACK
Client mosqpub/16180-pauls-air sending PUBLISH (d0, q0, r0, m1, 'sensors/value', ... (4 bytes))
Client mosqpub/16180-pauls-air sending DISCONNECT
1398854480: mosquitto version 1.2.90 (build date 2013-11-07 13:52:25+0000) starting
1398854480: Using default config.
1398854480: Opening ipv4 listen socket on port 1883.
1398854480: Opening ipv6 listen socket on port 1883.
1398854490: New connection from ::1 on port 1883.
1398854490: New client connected from ::1 as mosqsub/16156-pauls-air (c1, k60).
1398854503: New connection from ::1 on port 1883.
1398854503: New client connected from ::1 as mosqpub/16180-pauls-air (c1, k60).
_______________________________________________ mosquitto-dev mailing list mosquitto-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
On 30 April 2014 11:14, Guy Dillen <guy.dillen@xxxxxxxxx> wrote:
Back to the top