{"id":1354,"date":"2020-10-20T11:19:43","date_gmt":"2020-10-20T16:19:43","guid":{"rendered":"https:\/\/www.tigoe.com\/pcomp\/code\/?p=1354"},"modified":"2020-10-20T11:19:45","modified_gmt":"2020-10-20T16:19:45","slug":"this-week-in-code-mqtt-fun","status":"publish","type":"post","link":"https:\/\/www.tigoe.com\/pcomp\/code\/arduinowiring\/1354\/","title":{"rendered":"This Week in Code: MQTT Fun"},"content":{"rendered":"\n<p>Work&#8217;s been quite busy lately, with several things going on at once, and few things completed. Many pieces of what I am doing are scattered over the web, on my gitHub account, my various class sites, etc.  Since I&#8217;m expecting students to keep a blog in my classes, I thought it might be useful to revive my own blogs as a place to keep track of some of the projects I&#8217;m in the midst of. <\/p>\n\n\n\n<p>I&#8217;ve been having a good time making <a href=\"https:\/\/tigoe.github.io\/mqtt-examples\/\">examples<\/a> using the <a href=\"https:\/\/mqtt.org\/\">Message Queueing Telemetry Transfer (MQTT) <\/a>protocol lately. MQTT is a lightweight networking protocol used in many industrial networking (read: internet of things) applications. There are a number of good libraries out there for it on a variety of platforms, and a couple of useful public brokers (read: servers) that you can test your apps with, like <a href=\"https:\/\/shiftr.io\/try\">shiftr.io<\/a> and <a href=\"https:\/\/mosquitto.org\/\">mosquitto.org<\/a>. I like Shiftr because of the fancy motion graphic (okay, call me shallow). I&#8217;ve got examples for Arduino using the <a href=\"https:\/\/github.com\/arduino-libraries\/ArduinoMqttClient\">ArduinoMqttClient<\/a> library and <a href=\"https:\/\/p5js.org\">p5.js<\/a> using the <a href=\"https:\/\/www.eclipse.org\/paho\/index.php?page=clients\/js\/index.php\">Eclipse PAHO library<\/a>. I just added <a href=\"https:\/\/github.com\/tigoe\/mqtt-examples\/tree\/master\/p5js-mqtt-client\/p5Serial-client\">one using p5.serialport<\/a> as well, so you can connect Arduino projects to each other through p5.serialport -> p5.js -> MQTT.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Work&#8217;s been quite busy lately, with several things going on at once, and few things completed. Many pieces of what I am doing are scattered over the web, on my gitHub account, my various class sites, etc. Since I&#8217;m expecting students to keep a blog in my classes, I thought it might be useful to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tigoe.com\/pcomp\/code\/arduinowiring\/1354\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;This Week in Code: MQTT Fun&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,100,103],"tags":[119,118],"class_list":["post-1354","post","type-post","status-publish","format-standard","hentry","category-arduinowiring","category-code","category-javascript","tag-mqtt","tag-p5js"],"_links":{"self":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/1354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/comments?post=1354"}],"version-history":[{"count":2,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/1354\/revisions"}],"predecessor-version":[{"id":1356,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/1354\/revisions\/1356"}],"wp:attachment":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/media?parent=1354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/categories?post=1354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/tags?post=1354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}