{"id":489,"date":"2022-09-07T12:55:08","date_gmt":"2022-09-07T12:55:08","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=489"},"modified":"2023-05-04T17:09:47","modified_gmt":"2023-05-04T17:09:47","slug":"how-to-read-the-ankhmaway-sensor-data","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/how-to-read-the-ankhmaway-sensor-data\/","title":{"rendered":"How to Read the AnkhMaway Sensor Data?"},"content":{"rendered":"\n<p>Since we have been selling the AKMW-iB003N-SHT\u00a0 and AKMW-iB004N PLUS SHT we have been getting a few\u00a0questions regarding accessing the temperature and humidity data.<\/p>\n\n\n\n<p>You should first read the manufacturer&#8217;s <a href=\"https:\/\/www.beaconzone.co.uk\/ankhmaway-technical\/SHT20userguide.pdf\" target=\"_blank\" rel=\"noopener\">SHT20 User Guide<\/a> (username and password supplied with your beacon).<\/p>\n\n\n\n<p>If you are connecting via GATT to read the sensor data then you will need to set the beacon to be always connectable. The way to do this is (for some strange reason) only shown in the iB001M user guide:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"294\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2016\/06\/advertisementcontrol.png\" alt=\"advertisementcontrol\" class=\"wp-image-490\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2016\/06\/advertisementcontrol.png 586w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2016\/06\/advertisementcontrol-300x151.png 300w\" sizes=\"(max-width: 586px) 85vw, 586px\" \/><\/figure><\/div>\n\n\n<p>So if you wish to transmit iBeacon and remain connectable, set the value to 0x82. Note that if you subsequently set the beacon &#8216;on&#8217; or &#8216;off&#8217; in the &#8216;simple&#8217; configuration screen, accessed via the spanner icon (Android) or Configure option (on iOS), then this will overwrite your set value.<\/p>\n\n\n\n<p>However, you might instead consider reading the sensor data from the advertising data which a) is much easier to program and b) uses much less beacon battery power and c) allows multiple apps to see the data at the same time.<\/p>\n\n\n\n<p>There&#8217;s also an iOS example app in the <a href=\"https:\/\/www.beaconzone.co.uk\/ankhmawaytech\" target=\"_blank\" rel=\"noopener\">BeaconZone AnkhMaway technical area<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since we have been selling the AKMW-iB003N-SHT\u00a0 and AKMW-iB004N PLUS SHT we have been getting a few\u00a0questions regarding accessing the temperature and humidity data. You should first read the manufacturer&#8217;s SHT20 User Guide (username and password supplied with your beacon). If you are connecting via GATT to read the sensor data then you will need &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/how-to-read-the-ankhmaway-sensor-data\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Read the AnkhMaway Sensor 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,29,65,56,9,5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/489"}],"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=489"}],"version-history":[{"count":9,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":8538,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions\/8538"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}