{"id":7163,"date":"2022-01-24T15:19:17","date_gmt":"2022-01-24T15:19:17","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=7163"},"modified":"2022-02-08T10:28:36","modified_gmt":"2022-02-08T10:28:36","slug":"linux-d-bus-and-bluez","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/linux-d-bus-and-bluez\/","title":{"rendered":"Linux, D-Bus and Bluez"},"content":{"rendered":"\n<p>Barry Byford has a useful and continually growing <a href=\"https:\/\/ukbaz.github.io\/howto\/python_gio_1.html\">introduction to using Bluetooth on Linux<\/a>. He describes how to use BlueZ, the official Bluetooth stack on Linux, via D-Bus and Python. D-Bus allows communication between multiple processes running concurrently on the same machine. There&#8217;s an example how to set up an asynchronous event loop and how to build a Bluetooth Low Energy (BLE) device implementing the Bluetooth Central role.<\/p>\n\n\n\n<p>While you are there, also take a look at Barry&#8217;s notes and examples on <a rel=\"noreferrer noopener\" href=\"https:\/\/ukbaz.github.io\/howto\/bluez_pairing.html\" target=\"_blank\">Creating a BlueZ Pairing Agent<\/a> and <a href=\"https:\/\/gist.github.com\/ukBaz\/d7cd0c4b9e7078c89980a3db2bbad98b\" target=\"_blank\" rel=\"noreferrer noopener\">Bluez beacons on the command line.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Barry Byford has a useful and continually growing introduction to using Bluetooth on Linux. He describes how to use BlueZ, the official Bluetooth stack on Linux, via D-Bus and Python. D-Bus allows communication between multiple processes running concurrently on the same machine. There&#8217;s an example how to set up an asynchronous event loop and how &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/linux-d-bus-and-bluez\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux, D-Bus and Bluez&#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":[136],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/7163"}],"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=7163"}],"version-history":[{"count":7,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/7163\/revisions"}],"predecessor-version":[{"id":7264,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/7163\/revisions\/7264"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=7163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=7163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=7163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}