{"id":688,"date":"2021-05-25T18:38:17","date_gmt":"2021-05-25T18:38:17","guid":{"rendered":"http:\/\/meatpie\/?p=688"},"modified":"2021-05-25T19:16:52","modified_gmt":"2021-05-25T19:16:52","slug":"connected-little-sandwich-box-communication","status":"publish","type":"post","link":"https:\/\/snersbots.co.uk\/index.php\/connected-little-sandwich-box-communication\/","title":{"rendered":"Connected Little Sandwich Box &#8211; Communication"},"content":{"rendered":"\n<p>We have two connected little boxes which we want to talk to each other. Connect them in turn to the computer. Use the Arduino ide. Launch the serial monitor, and make sure it is 115200 baud<\/p>\n\n\n\n<p>Type <code>dump mqtt. <\/code><\/p>\n\n\n\n<p>Copy each line that needs changing, and add the value to the end. Enter the completed line. Eg: <code> mqttdevicename=sners_name<\/code><\/p>\n\n\n\n<p>You will have to set the mqtt values however your mqtt server is set up.<\/p>\n\n\n\n<p>This is an example of a command to the server. Type it into the serial monitor &#8211; your box should respond accordingly: <code>{\"process\":\"pixels\", \"command\":\"setnamedcolour\", \"colourname\":\"green\"}<\/code><\/p>\n\n\n\n<p>Use the mqttsub name to send a message to the other box. Eg <\/p>\n\n\n\n<p><code>{\"process\":\"pixels\", \"command\":\"setnamedcolour\", \"colourname\":\"purple\", \"brightness\": 0.1, \"to\":\"lb\/command\/CLB-d1f6de\"}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have two connected little boxes which we want to talk to each other. Connect them in turn to the computer. Use the Arduino ide. Launch the serial monitor, and make sure it is 115200 baud Type dump mqtt. Copy each line that needs changing, and add the value to the end. Enter the completed <a class=\"read-more\" href=\"https:\/\/snersbots.co.uk\/index.php\/connected-little-sandwich-box-communication\/\">The full story here&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":703,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11],"tags":[41],"class_list":["post-688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","category-other-projects","tag-connected-little-boxes"],"_links":{"self":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=688"}],"version-history":[{"count":6,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/688\/revisions"}],"predecessor-version":[{"id":704,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/688\/revisions\/704"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/media\/703"}],"wp:attachment":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}