{"id":5694,"date":"2020-10-06T10:07:17","date_gmt":"2020-10-06T10:07:17","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=5694"},"modified":"2021-01-08T10:26:02","modified_gmt":"2021-01-08T10:26:02","slug":"exercising-bluetooth-le-gatt","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/exercising-bluetooth-le-gatt\/","title":{"rendered":"Exercising Bluetooth LE GATT"},"content":{"rendered":"\n<p>Beacons send most of the time periodically advertising the same data. For setup, apps usually connect to them to set settings such as the advertising period, unique id and power level. The connection is performed using standard <a href=\"https:\/\/bluetoothle.wiki\/gatt\" target=\"_blank\" rel=\"noreferrer noopener\">Bluetooth GATT<\/a>.<\/p>\n\n\n\n<p>Bluetooth LE devices connect to others via GATT. Devices such as fitness trackers and our <a rel=\"noreferrer noopener\" href=\"https:\/\/www.beaconzone.co.uk\/SocialDistancingContactTracing\" target=\"_blank\">social distancing beacons<\/a> are regularly connected to, to download data. It&#8217;s also common to connect to <a rel=\"noreferrer noopener\" href=\"https:\/\/www.beaconzone.co.uk\/sensor\" target=\"_blank\">sensor beacons<\/a> to extract sensor data.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"432\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/10\/Bleaklogo.png\" alt=\"\" class=\"wp-image-5696\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/10\/Bleaklogo.png 800w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/10\/Bleaklogo-300x162.png 300w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2020\/10\/Bleaklogo-768x415.png 768w\" 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>GATT is usually used via compiled code and it can be time consuming to test GATT devices and\/or subsequently use the GATT interface in a flexible way. Should you need to do this, take a look at <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/hbldh\/bleak\" target=\"_blank\">Bleak GATT client software<\/a> capable of connecting to Bluetooth LE devices acting as GATT servers. It provides an asynchronous, cross-platform (Windows 10, Linux, Mac) Python API to connect and communicate with Bluetooth devices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Beacons send most of the time periodically advertising the same data. For setup, apps usually connect to them to set settings such as the advertising period, unique id and power level. The connection is performed using standard Bluetooth GATT. Bluetooth LE devices connect to others via GATT. Devices such as fitness trackers and our social &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/exercising-bluetooth-le-gatt\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Exercising Bluetooth LE GATT&#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":[4,100],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/5694"}],"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=5694"}],"version-history":[{"count":5,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/5694\/revisions"}],"predecessor-version":[{"id":5969,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/5694\/revisions\/5969"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=5694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=5694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=5694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}