{"id":2117,"date":"2025-03-30T10:08:09","date_gmt":"2025-03-30T17:08:09","guid":{"rendered":"https:\/\/unixwizardry.com\/?p=2117"},"modified":"2025-05-15T19:34:49","modified_gmt":"2025-05-16T02:34:49","slug":"asyncmqttclient-testing","status":"publish","type":"post","link":"https:\/\/unixwizardry.com\/index.php\/2025\/03\/30\/asyncmqttclient-testing\/","title":{"rendered":"AsyncMqttClient testing"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2117\" class=\"elementor elementor-2117\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4c8b9ca5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4c8b9ca5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2a90cd2d\" data-id=\"2a90cd2d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5d918347 elementor-widget elementor-widget-text-editor\" data-id=\"5d918347\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Another UPDATE:\u00a0 The AsyncMqttClient works pretty well; I think better than PubsubClient, which can only send a QoS (quality of service) level 0 which just sends it with no confirmation as I believe.\u00a0 AsyncMqttClient can send 0, 1, or 2, and I&#8217;m using QoS 1.\u00a0 The LEDs turning on when they&#8217;re not supposed to is still an issue but doesn&#8217;t seem to affect the performance of the station.\u00a0<\/p><p>UPDATE:\u00a0 I have AsyncMQTT working pretty well, I think.\u00a0 Now I have a couple NEW issues.\u00a0 Jeez.\u00a0 One, apparently now the 034B humidity sensor is reading low &#8211; like almost 1\/2 what it&#8217;s supposed to be.\u00a0 \u00a0And two, for some reason the MCP23008 GPIO expander is turning on LEDs randomly.\u00a0 For the previous issue, the sensor readings, I added some code so I can ground a test point to turn on the +12-volt boost regulator, required by the sensor.\u00a0 This works and I see a good voltage at the ADS1115 ADC showing 0.52 volts which translates to 52% humidity.\u00a0 I&#8217;m adding a delay in the code so +12-volts is there longer.<\/p><p>As far as the LED weirdness, I read that all the UNUSED GPIO pins should be pulled-up or pulled-down, so I&#8217;m going to try that.\u00a0 Or just set them to outputs and set them low.\u00a0 More to come.<\/p><p>I&#8217;ll be glad when I get this MQTT timing thing figured out since I want to use JavaScript gauge widgets on my Node-RED dashboard; they look really awesome!\u00a0 And I can&#8217;t really do that until this MQTT message issue is put to rest.\u00a0 Per my previous post, I&#8217;m seeing delay or missing (!) MQTT messages on the broker and I don&#8217;t know what&#8217;s going on.\u00a0 The Mosquito broker is on a Raspberry Pi and it is NOT overloaded.\u00a0 Right now, it sees (or supposed to see) messages and the MOST once per 30 seconds.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Another UPDATE:\u00a0 The AsyncMqttClient works pretty well; I think better than PubsubClient, which can only send a QoS (quality of service) level [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,27,35,38],"tags":[],"class_list":["post-2117","post","type-post","status-publish","format-standard","hentry","category-node-red","category-nodemcu-internet-of-things","category-programming","category-weather-instruments"],"_links":{"self":[{"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts\/2117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/comments?post=2117"}],"version-history":[{"count":13,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts\/2117\/revisions"}],"predecessor-version":[{"id":2133,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts\/2117\/revisions\/2133"}],"wp:attachment":[{"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/media?parent=2117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/categories?post=2117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/tags?post=2117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}