{"id":6534,"date":"2021-07-21T09:04:06","date_gmt":"2021-07-21T09:04:06","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=6534"},"modified":"2021-07-21T09:04:07","modified_gmt":"2021-07-21T09:04:07","slug":"esp32-ibeacon-advertising","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/esp32-ibeacon-advertising\/","title":{"rendered":"ESP32 iBeacon Advertising"},"content":{"rendered":"\n<p>There&#8217;s recent <a rel=\"noreferrer noopener\" href=\"https:\/\/qiita.com\/SamAkada\/items\/8860f3ba77233852d24a\" target=\"_blank\">example code for the M5StickC<\/a>, usable on almost any ESP32 device, that shows how to advertise iBeacon. The nice thing about this example is that it also shows the iBeacon parameters on the OLED display.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/07\/m5stickbeacon-1024x641.jpeg\" alt=\"\" class=\"wp-image-6535\" width=\"768\" height=\"481\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/07\/m5stickbeacon-1024x641.jpeg 1024w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/07\/m5stickbeacon-300x188.jpeg 300w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/07\/m5stickbeacon-768x481.jpeg 768w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/07\/m5stickbeacon-1200x751.jpeg 1200w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/07\/m5stickbeacon.jpeg 1400w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p>While adding iBeacon advertising to an ESP32 project can make sense, it&#8217;s often not the best choice if you only want advertising functionality. <a rel=\"noreferrer noopener\" href=\"https:\/\/www.beaconzone.co.uk\/ibeacon\" target=\"_blank\">Stand alone beacons<\/a> are more physically robust, use much less power and settings are configurable via ready-made apps rather than fixed in code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s recent example code for the M5StickC, usable on almost any ESP32 device, that shows how to advertise iBeacon. The nice thing about this example is that it also shows the iBeacon parameters on the OLED display. While adding iBeacon advertising to an ESP32 project can make sense, it&#8217;s often not the best choice if &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/esp32-ibeacon-advertising\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ESP32 iBeacon Advertising&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[246],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6534"}],"collection":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=6534"}],"version-history":[{"count":1,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6534\/revisions"}],"predecessor-version":[{"id":6536,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6534\/revisions\/6536"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=6534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=6534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=6534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}