{"id":997,"date":"2020-12-18T10:06:24","date_gmt":"2020-12-18T10:06:24","guid":{"rendered":"https:\/\/smartsensordevices.com\/?p=997"},"modified":"2021-05-05T13:45:00","modified_gmt":"2021-05-05T13:45:00","slug":"collect-realtime-data-from-bluetooth-device","status":"publish","type":"post","link":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/","title":{"rendered":"Collect Realtime Data From Bluetooth Device"},"content":{"rendered":"\n<p>This project will show how to collect Realtime Bluetooth low energy data and show it on web browser.<\/p>\n\n\n\n<p>For this project, I am using Bluetooth Low Energy USB dongle called BlueIO, which will act as a central device to retrieve data. Hibou Air Quality Monitor which will serve as a peripheral device to transmit the data. The script is simple to use and can be used for other purposes such as store the data into database or cloud.<\/p>\n\n\n\n<p>Things we need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Google chrome version 78 or later (windows)<\/li><li><a href=\"https:\/\/www.bleuio.com\/\">BleuIO \u2014 Bluetooth Low Energy USB dongle<\/a><\/li><li><a href=\"https:\/\/www.hiboucloud.com\/\">Hibou Air Quality Monitor sensor device<\/a><\/li><\/ul>\n\n\n\n<p>Before we start<\/p>\n\n\n\n<p>The article assumes you have some general knowledge of how Bluetooth Low Energy (BLE) work. Since the Chrome Serial specification on Google Chrome is not finalized yet, you will have to go to enable the highlighted flag, and restart Chrome. open\u00a0<strong>chrome:\/\/flags\/#enable-experimental-web-platform-features<\/strong>\u00a0in chrome browser. In this example, we are going to use JavaScript + html (and some CSS for styling) to setup the\u00a0<strong>BleuIO\u00a0<\/strong>and quickly start scanning.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"836\" src=\"http:\/\/smartsensordevices.com\/wp-content\/uploads\/2021\/03\/get-realtime-data-from-bluetooth-device-1024x836.jpg\" alt=\"\" class=\"wp-image-1114\" srcset=\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2021\/03\/get-realtime-data-from-bluetooth-device-1024x836.jpg 1024w, https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2021\/03\/get-realtime-data-from-bluetooth-device-300x245.jpg 300w, https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2021\/03\/get-realtime-data-from-bluetooth-device-768x627.jpg 768w, https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2021\/03\/get-realtime-data-from-bluetooth-device.jpg 1323w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Clone the git repository .git clone&nbsp;<a href=\"https:\/\/github.com\/smart-sensor-devices-ab\/get_realtime_data_bleuio\">https:\/\/github.com\/smart-sensor-devices-ab\/get_rea&#8230;<\/a><\/li><li>Connect the&nbsp;<strong>Bleuio&nbsp;<\/strong>dongle to your computer.<\/li><li>Open<strong>&nbsp;index.html<\/strong>&nbsp;file<\/li><li>Click connect and wait for the device to load on your com port.<\/li><li>Select your com port.<\/li><li>Scan for BLE devices. (this script only scan for Hibou Devices . You can change the manufacturer value at script.js file)<\/li><li>Select device and start getting data. You will see real time value on the screen.<\/li><li>Click on stop getting data to stop the script.<\/li><\/ul>\n\n\n\n<p>Follow the video for better understanding<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Get realtime data from Bluetooth devices\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/LqKcOVZuXlQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This project will show how to collect Realtime Bluetooth low energy data and show it on web browser. For this project, I am using Bluetooth Low Energy USB dongle called BlueIO, which will act as a central device to retrieve data. Hibou Air Quality Monitor which will serve as a peripheral device to transmit the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":999,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,18,21],"tags":[],"class_list":["post-997","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-air-quality","category-bleuio","category-bleuio-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Collect Realtime Data From Bluetooth Device - SMART SENSOR DEVICES AB<\/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:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Collect Realtime Data From Bluetooth Device - SMART SENSOR DEVICES AB\" \/>\n<meta property=\"og:description\" content=\"This project will show how to collect Realtime Bluetooth low energy data and show it on web browser. For this project, I am using Bluetooth Low Energy USB dongle called BlueIO, which will act as a central device to retrieve data. Hibou Air Quality Monitor which will serve as a peripheral device to transmit the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\" \/>\n<meta property=\"og:site_name\" content=\"SMART SENSOR DEVICES AB\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-18T10:06:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-05T13:45:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"620\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"siteManager\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ssd_techs\" \/>\n<meta name=\"twitter:site\" content=\"@ssd_techs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"siteManager\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\"},\"author\":{\"name\":\"siteManager\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1\"},\"headline\":\"Collect Realtime Data From Bluetooth Device\",\"datePublished\":\"2020-12-18T10:06:24+00:00\",\"dateModified\":\"2021-05-05T13:45:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\"},\"wordCount\":278,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg\",\"articleSection\":[\"Air quality\",\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\",\"name\":\"Collect Realtime Data From Bluetooth Device - SMART SENSOR DEVICES AB\",\"isPartOf\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg\",\"datePublished\":\"2020-12-18T10:06:24+00:00\",\"dateModified\":\"2021-05-05T13:45:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg\",\"contentUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg\",\"width\":620,\"height\":350},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/smartsensordevices.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Collect Realtime Data From Bluetooth Device\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#website\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/\",\"name\":\"SMART SENSOR DEVICES AB\",\"description\":\"IOT solutions for the future\",\"publisher\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/smartsensordevices.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#organization\",\"name\":\"SMART SENSOR DEVICES AB\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png\",\"contentUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png\",\"width\":756,\"height\":230,\"caption\":\"SMART SENSOR DEVICES AB\"},\"image\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ssd_techs\",\"https:\/\/www.linkedin.com\/company\/smart-sensor-devices-ab\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1\",\"name\":\"siteManager\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g\",\"caption\":\"siteManager\"},\"url\":\"https:\/\/smartsensordevices.com\/blog\/author\/ssdadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Collect Realtime Data From Bluetooth Device - SMART SENSOR DEVICES AB","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:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/","og_locale":"en_US","og_type":"article","og_title":"Collect Realtime Data From Bluetooth Device - SMART SENSOR DEVICES AB","og_description":"This project will show how to collect Realtime Bluetooth low energy data and show it on web browser. For this project, I am using Bluetooth Low Energy USB dongle called BlueIO, which will act as a central device to retrieve data. Hibou Air Quality Monitor which will serve as a peripheral device to transmit the [&hellip;]","og_url":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/","og_site_name":"SMART SENSOR DEVICES AB","article_published_time":"2020-12-18T10:06:24+00:00","article_modified_time":"2021-05-05T13:45:00+00:00","og_image":[{"width":620,"height":350,"url":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg","type":"image\/jpeg"}],"author":"siteManager","twitter_card":"summary_large_image","twitter_creator":"@ssd_techs","twitter_site":"@ssd_techs","twitter_misc":{"Written by":"siteManager","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#article","isPartOf":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/"},"author":{"name":"siteManager","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1"},"headline":"Collect Realtime Data From Bluetooth Device","datePublished":"2020-12-18T10:06:24+00:00","dateModified":"2021-05-05T13:45:00+00:00","mainEntityOfPage":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/"},"wordCount":278,"commentCount":0,"publisher":{"@id":"https:\/\/smartsensordevices.com\/blog\/#organization"},"image":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage"},"thumbnailUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg","articleSection":["Air quality","BleuIO","BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/","url":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/","name":"Collect Realtime Data From Bluetooth Device - SMART SENSOR DEVICES AB","isPartOf":{"@id":"https:\/\/smartsensordevices.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage"},"image":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage"},"thumbnailUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg","datePublished":"2020-12-18T10:06:24+00:00","dateModified":"2021-05-05T13:45:00+00:00","breadcrumb":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#primaryimage","url":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg","contentUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/12\/collect-and-show-data.jpg","width":620,"height":350},{"@type":"BreadcrumbList","@id":"https:\/\/smartsensordevices.com\/blog\/collect-realtime-data-from-bluetooth-device\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smartsensordevices.com\/"},{"@type":"ListItem","position":2,"name":"Collect Realtime Data From Bluetooth Device"}]},{"@type":"WebSite","@id":"https:\/\/smartsensordevices.com\/blog\/#website","url":"https:\/\/smartsensordevices.com\/blog\/","name":"SMART SENSOR DEVICES AB","description":"IOT solutions for the future","publisher":{"@id":"https:\/\/smartsensordevices.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smartsensordevices.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/smartsensordevices.com\/blog\/#organization","name":"SMART SENSOR DEVICES AB","url":"https:\/\/smartsensordevices.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png","contentUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png","width":756,"height":230,"caption":"SMART SENSOR DEVICES AB"},"image":{"@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ssd_techs","https:\/\/www.linkedin.com\/company\/smart-sensor-devices-ab\/"]},{"@type":"Person","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1","name":"siteManager","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g","caption":"siteManager"},"url":"https:\/\/smartsensordevices.com\/blog\/author\/ssdadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts\/997"}],"collection":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/comments?post=997"}],"version-history":[{"count":3,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts\/997\/revisions"}],"predecessor-version":[{"id":1115,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts\/997\/revisions\/1115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/media\/999"}],"wp:attachment":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/media?parent=997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/categories?post=997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/tags?post=997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}