{"id":470,"date":"2023-03-10T12:43:49","date_gmt":"2023-03-10T12:43:49","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=470"},"modified":"2023-03-13T11:48:33","modified_gmt":"2023-03-13T11:48:33","slug":"bleuio-python-library-now-supports-firmware-v2-2-1","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/","title":{"rendered":"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features"},"content":{"rendered":"\n<p>BleuIO Python library is updated and<strong> supports firmware version 2.2.1<\/strong>\u00a0.This update utilizes the new Verbose mode of the dongle and make it a lot simpler to work with Bluetooth Low Energy with Python.<br>Now the AT commands returns an object with 4 members<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Command<\/li>\n\n\n\n<li>Acknowledge<\/li>\n\n\n\n<li>Response<\/li>\n\n\n\n<li>End<\/li>\n<\/ul>\n\n\n\n<p>Each contains a JSON object, except Response. The Response contains a list of<strong> JSON objects<\/strong> since a command can have several responses. <\/p>\n\n\n\n<p>This new update of the library makes it easier to get the relevant information without building your own parser.<br><strong>Status variables :<\/strong> Helpful status variables has been added which helps to keep track of the dongle status ; whether it is scanning, advertising or connected along with the dongle role.<br><strong>Callback function : <\/strong>A callback function should be registered for both scan results and events. The callback functions will run every time a new event or scan result is detected. <\/p>\n\n\n\n<p><strong>Using the library<\/strong><\/p>\n\n\n\n<p>List of AT commands are available at https:\/\/www.bleuio.com\/getting_started\/docs\/commands\/<\/p>\n\n\n\n<p>and how to access these AT commands using python library can be found at<br>https:\/\/pypi.org\/project\/bleuio\/<\/p>\n\n\n\n<p>Before starting to install our library, make sure you have the latest python installed on your system.<\/p>\n\n\n\n<p>If you have never installed a library from PyPI, you must install the pip tool enabling you to download and install a PyPI package. There are several methods that are described on this&nbsp;<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/pip.pypa.io\/en\/latest\/installation\/\">page<\/a>.<\/p>\n\n\n\n<p>Now Install the library by running<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install bleuio<\/pre>\n\n\n\n<p><strong>pip<\/strong> automatically downloads and installs the most recent library on your system in the correct directory. To check that the installation went well, you can launch a Python interpreter and run the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from bleuio_lib.bleuio_funcs import BleuIO\nmy_dongle = BleuIO()\nprint(my_dongle.ati().Rsp)<\/pre>\n\n\n\n<p>Good luck on creating amazing Bluetooth Low Energy application using\u00a0<a href=\"https:\/\/www.bleuio.com\/\">BleuIO<\/a> and Python.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BleuIO Python library is updated and supports firmware version 2.2.1\u00a0.This update utilizes the new Verbose mode of the dongle and make it a lot simpler to work with Bluetooth Low Energy with Python.Now the AT commands returns an object with 4 members Each contains a JSON object, except Response. The Response contains a list of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[],"class_list":["post-470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bleuio","category-bleuio-firmware-updates"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>BleuIO Python library v1.2.0 includes verbose mode with easier event handling features - BleuIO - Create Bluetooth Low Energy application<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"BleuIO Python library is updated and supports firmware version 2.2.1\u00a0.This update utilizes the new Verbose mode of the dongle and make it a lot simpler to work with Bluetooth Low Energy with Python.Now the AT commands returns an object with 4 members Each contains a JSON object, except Response. The Response contains a list of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-10T12:43:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-13T11:48:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/03\/python-library-bluetooth.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"670\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"BleuIO\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features\",\"datePublished\":\"2023-03-10T12:43:49+00:00\",\"dateModified\":\"2023-03-13T11:48:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/\"},\"wordCount\":298,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/python-library-bluetooth.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO firmware updates\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/\",\"name\":\"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/python-library-bluetooth.jpg\",\"datePublished\":\"2023-03-10T12:43:49+00:00\",\"dateModified\":\"2023-03-13T11:48:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/python-library-bluetooth.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/python-library-bluetooth.jpg\",\"width\":670,\"height\":350},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/bleuio-python-library-now-supports-firmware-v2-2-1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\",\"name\":\"BleuIO - Create Bluetooth Low Energy application\",\"description\":\"Learn Bluetooth Low Energy programming and build Bluetooth Low Energy Application\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\",\"name\":\"BleuIO\",\"sameAs\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/author\\\/biadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features - BleuIO - Create Bluetooth Low Energy application","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/","og_locale":"en_US","og_type":"article","og_title":"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features - BleuIO - Create Bluetooth Low Energy application","og_description":"BleuIO Python library is updated and supports firmware version 2.2.1\u00a0.This update utilizes the new Verbose mode of the dongle and make it a lot simpler to work with Bluetooth Low Energy with Python.Now the AT commands returns an object with 4 members Each contains a JSON object, except Response. The Response contains a list of [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2023-03-10T12:43:49+00:00","article_modified_time":"2023-03-13T11:48:33+00:00","og_image":[{"width":670,"height":350,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/03\/python-library-bluetooth.jpg","type":"image\/jpeg"}],"author":"BleuIO","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features","datePublished":"2023-03-10T12:43:49+00:00","dateModified":"2023-03-13T11:48:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/"},"wordCount":298,"commentCount":0,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/03\/python-library-bluetooth.jpg","articleSection":["BleuIO","BleuIO firmware updates"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/","url":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/","name":"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/03\/python-library-bluetooth.jpg","datePublished":"2023-03-10T12:43:49+00:00","dateModified":"2023-03-13T11:48:33+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/03\/python-library-bluetooth.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/03\/python-library-bluetooth.jpg","width":670,"height":350},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/bleuio-python-library-now-supports-firmware-v2-2-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"BleuIO Python library v1.2.0 includes verbose mode with easier event handling features"}]},{"@type":"WebSite","@id":"https:\/\/www.bleuio.com\/blog\/#website","url":"https:\/\/www.bleuio.com\/blog\/","name":"BleuIO - Create Bluetooth Low Energy application","description":"Learn Bluetooth Low Energy programming and build Bluetooth Low Energy Application","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bleuio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80","name":"BleuIO","sameAs":["https:\/\/www.bleuio.com\/blog"],"url":"https:\/\/www.bleuio.com\/blog\/author\/biadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":4,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/470\/revisions\/476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/472"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}