{"id":4655,"date":"2020-01-29T11:00:36","date_gmt":"2020-01-29T11:00:36","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=4655"},"modified":"2021-01-15T10:06:43","modified_gmt":"2021-01-15T10:06:43","slug":"monitor-presence-detection-reported-via-mqtt","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/monitor-presence-detection-reported-via-mqtt\/","title":{"rendered":"Monitor &#8211; Presence Detection Reported via MQTT"},"content":{"rendered":"\n<p>There&#8217;s a new Linux script called <a rel=\"noreferrer noopener\" aria-label=\"Monitor (opens in a new tab)\" href=\"https:\/\/github.com\/andrewjfreyer\/monitor\" target=\"_blank\">Monitor<\/a> that scans for the presence of beacons and <strong>other Bluetooth devices <\/strong>and reports to a MQTT server.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"408\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/01\/examplemonitoroutput.png\" alt=\"\" class=\"wp-image-4656\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/01\/examplemonitoroutput.png 676w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/01\/examplemonitoroutput-300x181.png 300w\" 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>The mechanism doesn&#8217;t just scan for beacons. It combines name requests, anonymous advertisements and beacon advertisements to determine when to issue a name request to determine if a device is present and when to issue a name request to determine if a device is absent.<\/p>\n\n\n\n<p>The author, <a href=\"https:\/\/twitter.com\/andrewjfreyer\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Andrew J Freyer (opens in a new tab)\">Andrew J Freyer<\/a>, provides instructions how to set up on a Raspberry Pi Zero W.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a new Linux script called Monitor that scans for the presence of beacons and other Bluetooth devices and reports to a MQTT server. The mechanism doesn&#8217;t just scan for beacons. It combines name requests, anonymous advertisements and beacon advertisements to determine when to issue a name request to determine if a device is present &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/monitor-presence-detection-reported-via-mqtt\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Monitor &#8211; Presence Detection Reported via MQTT&#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":[1,127],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4655"}],"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=4655"}],"version-history":[{"count":1,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4655\/revisions"}],"predecessor-version":[{"id":4657,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4655\/revisions\/4657"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=4655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=4655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=4655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}