{"id":57,"date":"2017-10-27T18:13:55","date_gmt":"2017-10-28T01:13:55","guid":{"rendered":"https:\/\/blogs.ubc.ca\/rubs\/?p=57"},"modified":"2017-10-28T00:15:10","modified_gmt":"2017-10-28T07:15:10","slug":"finally-udp-recieve-working-from-mkr1000-via-wi-fi","status":"publish","type":"post","link":"https:\/\/blogs.ubc.ca\/rubs\/2017\/10\/27\/finally-udp-recieve-working-from-mkr1000-via-wi-fi\/","title":{"rendered":"Finally! UDP Recieve working from MKR1000 via Wi-Fi."},"content":{"rendered":"<p>Finally! Max is able to receive data from MKR1000 wirelessly!<\/p>\n<p>WiFiUDP from WiFi101 library can send data to other machines in the network through UDP, given &#8220;destination IP address and its Port Number&#8221;.<\/p>\n<p>MAX&#8217;s &#8220;udpreceive&#8221; however, only accepts Open Sound Control (OSC) encoded bytes. Also, Arduino&#8217;s OSC library only send data via ethernet!!!<\/p>\n<p>So&#8230; to overcome this problem, I created add-ons for WiFi101 library to support sending OSC encoded data via UDP. And after several cookies, cups of tea, and couple days of pulling my hair.. voila!!!<\/p>\n<p>Enjoy \ud83d\ude42<\/p>\n<p><iframe loading=\"lazy\" title=\"OSC UDP demo\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/SMmKsI23GN4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally! Max is able to receive data from MKR1000 wirelessly! WiFiUDP from WiFi101 library can send data to other machines in the network through UDP, given &#8220;destination IP address and its Port Number&#8221;. MAX&#8217;s &#8220;udpreceive&#8221; however, only accepts Open Sound Control (OSC) encoded bytes. Also, Arduino&#8217;s OSC library only send data via ethernet!!! So&#8230; to [&hellip;]<\/p>\n","protected":false},"author":54474,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/users\/54474"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":6,"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/posts\/57\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/rubs\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}