{"id":23,"date":"2026-04-23T11:10:46","date_gmt":"2026-04-23T11:10:46","guid":{"rendered":"http:\/\/burcham.org.uk\/?p=23"},"modified":"2026-04-23T11:10:46","modified_gmt":"2026-04-23T11:10:46","slug":"using-bluetooth-to-get-sensor-data-off-my-board","status":"publish","type":"post","link":"https:\/\/burcham.org.uk\/?p=23","title":{"rendered":"Using bluetooth to get sensor data off my board"},"content":{"rendered":"\n<p>For my tinyML project I&#8217;ve been evaluating MQTT and HTTP to get data off my board. I&#8217;ve also been looking at using BLE.<\/p>\n\n\n\n<p>I&#8217;ve been investigating the ArduinoBLE library. It seems quite nice. It looks like it supports Central and Peripheral. At this stage I think I&#8217;m mostly interested in using the microcontroller as a Peripheral. It seems well documented. It can be configured to be event driven (useful if I expect the Central to be sending the Peripheral any data). Supports sending data as notifications (and I believe indications).<\/p>\n\n\n\n<p>On the Central side, it looks like my best option will be the python bleak module. I expect most of the code surrounding BLE handling will be python, so that would work well. Again can be configured to be event driven (I saw lots of mention of async, so I suspect this may even be strongly encouraged.<\/p>\n\n\n\n<p>If I need to any python Peripheral work, there is also the python bless module. I haven&#8217;t looked at this much yet.<\/p>\n\n\n\n<p>I&#8217;ve done extensive work with bluetooth previously. However, so much of it has been implementing bluetooth stacks. There has been much less using it as part of an actual application to do stuff. It might be nice to use it for this purpose.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For my tinyML project I&#8217;ve been evaluating MQTT and HTTP to get data off my board. I&#8217;ve also been looking at using BLE. I&#8217;ve been investigating the ArduinoBLE library. It seems quite nice. It looks like it supports Central and Peripheral. At this stage I think I&#8217;m mostly interested in using the microcontroller as a &hellip; <a href=\"https:\/\/burcham.org.uk\/?p=23\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using bluetooth to get sensor data off my board<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/burcham.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/burcham.org.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/burcham.org.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/burcham.org.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/burcham.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":1,"href":"https:\/\/burcham.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/burcham.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/burcham.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/burcham.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/burcham.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}