This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mqtt setup for 1 wire ds18b20 sensors
#4
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
Reply


Messages In This Thread
Mqtt setup for 1 wire ds18b20 sensors - by PaddyB - 2016-04-28, 09:50 AM
RE: Mqtt setup for 1 wire ds18b20 sensors - by davidec - 2016-05-03, 03:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)