2016-05-03, 03:13 PM
Hi Sailoog,
I verified this case using a frequence of 60 secs, but seems that for each event mqtt receives 2 messages.
Moreover for each message it is opened a new TCP socket. In this way I have a lot of tcp sockets opened (those sockets are closed only by timeout condition)
Is it the behaviour expected?
Checking configuration and logs I have:
ds18b20 = [['18DS20std', 't18std0', 'C', '000003e16e42', '1W0', '1'], ['18DS20imp', 't18imp2', 'C', '800000035457', '1W1', '1'], ['intDSstd4', 't18std4', 'C', '000003e13053', '1W2', '1']]
topics = [['tmp', 'temp/int4', 'MQTT0']]
triggers = [[1, -1, -1, -1, [['HOUT0', '', 0.0, 0]]], [1, -1, -1, -1, [['MQTT0', '[t18std4]', 1.0, 2]]]]
from mosquitto.log:
1462282427: New connection from 127.0.0.1 on port 1883.
1462282427: New client connected from 127.0.0.1 as paho/0D56FD3D31FE699C3A (c1, k60, umqttpi).
1462282427: New connection from 127.0.0.1 on port 1883.
1462282427: New client connected from 127.0.0.1 as paho/46C1713D7C0F644F27 (c1, k60, umqttpi).
...
1462283479: Socket error on client paho/373C43968871DDD006, disconnecting.
1462283479: Socket error on client paho/5D9F2F7DC7D704C251, disconnecting.
Thanks in advance
Davide
I verified this case using a frequence of 60 secs, but seems that for each event mqtt receives 2 messages.
Moreover for each message it is opened a new TCP socket. In this way I have a lot of tcp sockets opened (those sockets are closed only by timeout condition)
Is it the behaviour expected?
Checking configuration and logs I have:
ds18b20 = [['18DS20std', 't18std0', 'C', '000003e16e42', '1W0', '1'], ['18DS20imp', 't18imp2', 'C', '800000035457', '1W1', '1'], ['intDSstd4', 't18std4', 'C', '000003e13053', '1W2', '1']]
topics = [['tmp', 'temp/int4', 'MQTT0']]
triggers = [[1, -1, -1, -1, [['HOUT0', '', 0.0, 0]]], [1, -1, -1, -1, [['MQTT0', '[t18std4]', 1.0, 2]]]]
from mosquitto.log:
1462282427: New connection from 127.0.0.1 on port 1883.
1462282427: New client connected from 127.0.0.1 as paho/0D56FD3D31FE699C3A (c1, k60, umqttpi).
1462282427: New connection from 127.0.0.1 on port 1883.
1462282427: New client connected from 127.0.0.1 as paho/46C1713D7C0F644F27 (c1, k60, umqttpi).
...
1462283479: Socket error on client paho/373C43968871DDD006, disconnecting.
1462283479: Socket error on client paho/5D9F2F7DC7D704C251, disconnecting.
Thanks in advance
Davide