{"id":251,"date":"2021-08-02T04:11:28","date_gmt":"2021-08-02T04:11:28","guid":{"rendered":"https:\/\/bipes.net.br\/wp\/?p=251"},"modified":"2021-08-02T04:11:28","modified_gmt":"2021-08-02T04:11:28","slug":"program-esp32-using-bluetooth-and-bipes","status":"publish","type":"post","link":"https:\/\/bipes.net.br\/wp\/2021\/08\/02\/program-esp32-using-bluetooth-and-bipes\/","title":{"rendered":"Program ESP32 using Bluetooth and BIPES"},"content":{"rendered":"\n<p>Program ESP32 using Bluetooth and BIPES \/ Web Bluetooth REPL<\/p>\n\n\n\n<p>Install the required libraries (ESP32 must be connected to the Internet):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"262\" height=\"173\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-28.png\" alt=\"\" class=\"wp-image-252\"\/><\/figure>\n\n\n\n<p>You can install by connecting to the board using BIPES console tab, and clicking on each of the buttons above, which are available on the toolbox (Select ESP32 board on the top right, then go to Network -> Web Bluetooth REPL).<\/p>\n\n\n\n<p>Then you need a single block:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"240\" height=\"57\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-29.png\" alt=\"\" class=\"wp-image-253\"\/><\/figure>\n\n\n\n<p>Pair the device mpy-repl \/ ESP32:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"973\" height=\"702\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-30.png\" alt=\"\" class=\"wp-image-254\" srcset=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-30.png 973w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-30-300x216.png 300w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-30-768x554.png 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Go to BIPES Serial:<\/p>\n\n\n\n<p><a href=\"https:\/\/bipes.net.br\/beta2serial\/ui\/\">https:\/\/bipes.net.br\/beta2serial\/ui\/<\/a><\/p>\n\n\n\n<p>On the Console, click on connect (Web Bluetooth):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"459\" height=\"470\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-31.png\" alt=\"\" class=\"wp-image-255\" srcset=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-31.png 459w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-31-293x300.png 293w\" sizes=\"(max-width: 459px) 85vw, 459px\" \/><\/figure>\n\n\n\n<p>And the REPL is available using Bluetooth:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"812\" height=\"362\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-32.png\" alt=\"\" class=\"wp-image-256\" srcset=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-32.png 812w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-32-300x134.png 300w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-32-768x342.png 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p>Now you can interact with the board using Bluetooth, send block-based programs, manage files, etc.<\/p>\n\n\n\n<p>Here is one example that reads the ADC of the ESP32. Using BIPES-DATA block, you can view the data on the dashboard!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"883\" height=\"348\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-33.png\" alt=\"\" class=\"wp-image-257\" srcset=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-33.png 883w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-33-300x118.png 300w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-33-768x303.png 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Console:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"364\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35-1024x364.png\" alt=\"\" class=\"wp-image-259\" srcset=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35-1024x364.png 1024w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35-300x107.png 300w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35-768x273.png 768w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35-1536x547.png 1536w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35-1200x427.png 1200w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-35.png 1579w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>IOT tab:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"507\" src=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34-1024x507.png\" alt=\"\" class=\"wp-image-258\" srcset=\"https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34-1024x507.png 1024w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34-300x149.png 300w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34-768x381.png 768w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34-1536x761.png 1536w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34-1200x595.png 1200w, https:\/\/bipes.net.br\/wp\/wp-content\/uploads\/2021\/08\/image-34.png 1576w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Program sent to the board using Bluetooth, REPL access and dashboard data view from Bluetooth data! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Program ESP32 using Bluetooth and BIPES \/ Web Bluetooth REPL Install the required libraries (ESP32 must be connected to the Internet): You can install by connecting to the board using BIPES console tab, and clicking on each of the buttons above, which are available on the toolbox (Select ESP32 board on the top right, then &hellip; <a href=\"https:\/\/bipes.net.br\/wp\/2021\/08\/02\/program-esp32-using-bluetooth-and-bipes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Program ESP32 using Bluetooth and BIPES&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/posts\/251"}],"collection":[{"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":1,"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":260,"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/posts\/251\/revisions\/260"}],"wp:attachment":[{"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bipes.net.br\/wp\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}