That "Socket error" may be an MQTT protocol version mismatch.

Try changing the version which is hardcoded in my driver
import paho.mqtt.client as mqtt
....
self.client = mqtt.Client(client_id=self.client_id, protocol=mqtt.MQTTv31)

to match what your library and MQTT broke Mosquitto support. You can check 
your MQTT version in this file:
/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py
or an equivalent depending on what OS you are using. I also believe I have 
to manually build mosquitto-1.4.10 to get the connection to work.

Another possibility is that you have Mosquitto configured to NOT need user 
and password.

On Monday, 20 February 2017 17:34:01 UTC-4, wysiwyg wrote:
>
>
>> 1487626012: New connection from 192.168.1.180 on port 1883.
> 1487626012: Socket error on client <unknown>, disconnecting.
> 1487626042: New connection from 192.168.1.180 on port 1883.
> 1487626042: Socket error on client <unknown>, disconnecting.
>
>
> disconnection occurs when I reload weewx configuration (weewx restart)
>
>
>
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to