{"id":430,"date":"2022-09-05T07:51:29","date_gmt":"2022-09-05T07:51:29","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=430"},"modified":"2023-05-04T17:24:32","modified_gmt":"2023-05-04T17:24:32","slug":"getting-the-ankhmaway-battery-level-from-advertising-data","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/getting-the-ankhmaway-battery-level-from-advertising-data\/","title":{"rendered":"Getting the AnkhMaway Battery Level from Advertising Data"},"content":{"rendered":"\n<p>One of the great things about AnkhMaway beacons is that they provide the battery level in the advertising data. This allows you to view or easily programmatically determine the battery level without connecting. For example, here&#8217;s the output from the Android iBeaconDetector app:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"221\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2016\/05\/batteryinadvertisingdata.png\" alt=\"batteryinadvertisingdata\" class=\"wp-image-432\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2016\/05\/batteryinadvertisingdata.png 493w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2016\/05\/batteryinadvertisingdata-300x134.png 300w\" sizes=\"(max-width: 493px) 85vw, 493px\" \/><\/figure><\/div>\n\n\n<p>The last two useful hex characters of the advertising data, &#8216;5E&#8217; in this case, gives the level out of 100. You can use an <a href=\"http:\/\/www.binaryhexconverter.com\/hex-to-decimal-converter\" target=\"_blank\" rel=\"noopener\">online Hex to decimal converter<\/a> to see the value in decimal that&#8217;s 94% in this case.<\/p>\n\n\n\n<p>Note that the battery level in the advertising data is only present&nbsp;for recent firmware versions which might not be the case if you haven&#8217;t purchased the beacons from BeaconZone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the great things about AnkhMaway beacons is that they provide the battery level in the advertising data. This allows you to view or easily programmatically determine the battery level without connecting. For example, here&#8217;s the output from the Android iBeaconDetector app: The last two useful hex characters of the advertising data, &#8216;5E&#8217; in &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/getting-the-ankhmaway-battery-level-from-advertising-data\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Getting the AnkhMaway Battery Level from Advertising Data&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,52],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/430"}],"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=430"}],"version-history":[{"count":5,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":8550,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions\/8550"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}