{"id":2094,"date":"2025-03-27T11:27:44","date_gmt":"2025-03-27T18:27:44","guid":{"rendered":"https:\/\/unixwizardry.com\/?p=2094"},"modified":"2025-03-30T10:03:55","modified_gmt":"2025-03-30T17:03:55","slug":"another-obstacle-inaccurate-timing-or-missing-mqtt-publishes","status":"publish","type":"post","link":"https:\/\/unixwizardry.com\/index.php\/2025\/03\/27\/another-obstacle-inaccurate-timing-or-missing-mqtt-publishes\/","title":{"rendered":"Another obstacle: Inaccurate timing or missing MQTT publishes"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2094\" class=\"elementor elementor-2094\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-15bbe43e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"15bbe43e\" 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-6baaa8ea\" data-id=\"6baaa8ea\" 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-560af789 elementor-widget elementor-widget-text-editor\" data-id=\"560af789\" 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>Well, at least the hardware is figured out and I&#8217;m ALMOST done with the PCB using KiCAD and I will soon send the Gerber and related files to JLCPCB.\u00a0 While the PCBs are being made, I can figure out why I now have MQTT timing issues: the MQTT packets are sometimes late to the broker or never appear at all.\u00a0 Damn.\u00a0 This isn&#8217;t a showstopper for the wind measurements, but I really would like the times to be accurate.\u00a0 It IS a problem for rain gauge.\u00a0 I post hourly measurements of precipitation to the Node-RED dashboard and right now some MQTT messages are late (or not at all).\u00a0 This screws up the chart: if the message is late for the hour (I check the rain gauge at 1 minute before the hour), then it is added the NEXT hour, and that simply won&#8217;t do.\u00a0 So I&#8217;m wondering if it&#8217;s the fact I&#8217;m sending too much info in JSON format, and I don&#8217;t really need to.\u00a0 \u00a0After doing some research on Pubsubclient VS AsyncMQTTclient, I&#8217;m going to try the latter with the wind sensors only in a separate test program.\u00a0\u00a0<\/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>Well, at least the hardware is figured out and I&#8217;m ALMOST done with the PCB using KiCAD and I will soon send [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,44,35],"tags":[],"class_list":["post-2094","post","type-post","status-publish","format-standard","hentry","category-nodemcu-internet-of-things","category-platformio","category-programming"],"_links":{"self":[{"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts\/2094","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=2094"}],"version-history":[{"count":15,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts\/2094\/revisions"}],"predecessor-version":[{"id":2116,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/posts\/2094\/revisions\/2116"}],"wp:attachment":[{"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/media?parent=2094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/categories?post=2094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unixwizardry.com\/index.php\/wp-json\/wp\/v2\/tags?post=2094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}