{"id":161,"date":"2022-02-14T10:38:22","date_gmt":"2022-02-14T10:38:22","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=161"},"modified":"2022-07-01T10:35:55","modified_gmt":"2022-07-01T10:35:55","slug":"sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/","title":{"rendered":"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy"},"content":{"rendered":"\n<p>The project is showcasing a simple way of using the the BleuIO Dongle to advertise data that the STM32 reads from a sensor which is connected to the STM32 Nucleo-144.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"839\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/BleuIO-SHT85.jpg\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/BleuIO-SHT85.jpg 965w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/BleuIO-SHT85-300x261.jpg 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/BleuIO-SHT85-768x668.jpg 768w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"requirments\">Requirments :<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>A BleuIO dongle (https:\/\/www.bleuio.com\/)<\/li><li>A SHT85 sensor (https:\/\/sensirion.com\/products\/catalog\/SHT85\/)<\/li><li>A board with a STM32 Microcontroller with a USB port. (A Nucleo-144 development board: NUCLEO-H743ZI2, was used developing this example. (https:\/\/www.st.com\/en\/evaluation-tools\/nucleo-h743zi.html)<\/li><li>To connect the dongle to the Nucleo board we used a \u201cUSB A to Micro USB B\u201d-cable with a USB A female-to-female adapter.)<\/li><li>STM32CubeIDE (https:\/\/www.st.com\/en\/development-tools\/stm32cubeide.html)<\/li><\/ul>\n\n\n\n<p>When the BleuIO Dongle is connected to the Nucleo boards USB port, the STM32 will recognize it and start advertising the sensor values that it reads from the SHT85 along with the sensor serial number. It will update these values every 10 seconds.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setup-the-project\">Setup the project<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"part-1-download-the-project\">Part 1 : Download the project<\/h4>\n\n\n\n<p><strong>Get project&nbsp;<a href=\"https:\/\/github.com\/smart-sensor-devices-ab\/stm32_bleuio_SHT85_example\">HERE<\/a><\/strong><br><br>https:\/\/github.com\/smart-sensor-devices-ab\/stm32_bleuio_SHT85_example<br><br>Either clone the project, or download it as a zip file and unzip it, into your STM32CubeIDE workspace.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"part-2-importing-as-an-existing-project\">Part 2 : Importing as an Existing Project<\/h4>\n\n\n\n<p>From STM32CubeIDE choose File>Import\u2026<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"536\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/import.png\" alt=\"\" class=\"wp-image-163\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/import.png 334w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/import-187x300.png 187w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/figure>\n\n\n\n<p>Then choose General>Existing Projects into Workspace then click \u2018Next >\u2019<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"543\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/existing_projects.png\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/existing_projects.png 511w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/existing_projects-282x300.png 282w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/figure>\n\n\n\n<p>Make sure you\u2019ve choosen your workspace in \u2018Select root directory:\u2019<\/p>\n\n\n\n<p>You should see the project \u201cstm32_bleuio_SHT85_example\u201d, check it and click \u2018Finish\u2019.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"703\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/import_projects.png\" alt=\"\" class=\"wp-image-164\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/import_projects.png 463w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/import_projects-198x300.png 198w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/figure>\n\n\n\n<p>If you download the project as a zip file you will need to rename the project folder from \u2018stm32_bleuio_SHT85_example-master\u2019 to \u2018stm32_bleuio_SHT85_example\u2019<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"283\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/sht85_wiring.png\" alt=\"\" class=\"wp-image-166\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/sht85_wiring.png 476w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/sht85_wiring-300x178.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<p>Connect the SDA to PF0 on the Nucleo board and SCL to PF1.<\/p>\n\n\n\n<p>Then setup I2C2 in the STM32Cube ioc file like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"344\" height=\"69\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_pins-1.png\" alt=\"\" class=\"wp-image-170\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_pins-1.png 344w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_pins-1-300x60.png 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"548\" height=\"106\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_NVIC.png\" alt=\"\" class=\"wp-image-169\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_NVIC.png 548w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_NVIC-300x58.png 300w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"384\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_param_settings.png\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_param_settings.png 549w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/stm32cubeide_param_settings-300x210.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"running-the-example\">Running the example<\/h2>\n\n\n\n<p>In STMCubeIDE click the hammer icon to build the project.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open up the \u2018STMicroelectronics STLink Viritual COM Port\u2019 with a serial terminal emulation program like TeraTerm, Putty or CoolTerm.<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Baudrate: 115200<\/p><p>Data Bits: 8<\/p><p>Parity: None<\/p><p>Stop Bits: 1<\/p><p>Flow Control: None<\/p><\/blockquote>\n\n\n\n<ul class=\"wp-block-list\"><li>In STMCubeIDE click the green play button to flash and run it on your board. The first time you click it the \u2018Run Configuration\u2019 window will appear. You can just leave it as is and click run.<\/li><li>Connect the BleuIO Dongle.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"access-sensor-data-from-a-web-browser\">Access sensor data from a web browser<\/h2>\n\n\n\n<p>We wrote a simple script that connects to the BleuIO dongle and reads advertised data from STM32.<\/p>\n\n\n\n<p>For this script to work, we need<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.bleuio.com\/\">BleuIO USB dongle<\/a>&nbsp;connected to the computer.<\/li><li><a href=\"https:\/\/www.npmjs.com\/package\/bleuio\">BleuIO javascript library<\/a><\/li><li>Chrome 78 or later, and you need to enable the&nbsp;<strong>#enable-experimental-web-platform-features<\/strong>&nbsp;flag in&nbsp;<a href=\"chrome:\/\/flags\/\">chrome:\/\/flags<\/a><\/li><li>A web bundler \u2013 (<a href=\"https:\/\/parceljs.org\/\">parcel js<\/a>)<\/li><\/ul>\n\n\n\n<p><strong>Steps<\/strong><\/p>\n\n\n\n<p>Create a simple Html file called index.html which will serve as the frontend of the script. This Html file contains some buttons that help connect and read advertised data from the remote dongle, which is connected to stm32.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\r\n&lt;html lang=\"en\">\r\n  &lt;head>\r\n    &lt;!-- Required meta tags -->\r\n    &lt;meta charset=\"utf-8\" \/>\r\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \/>\r\n\r\n    &lt;!-- Bootstrap CSS -->\r\n    &lt;link\r\n      href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.1.3\/dist\/css\/bootstrap.min.css\"\r\n      rel=\"stylesheet\"\r\n      integrity=\"sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3\"\r\n      crossorigin=\"anonymous\"\r\n    \/>\r\n\r\n    &lt;title>STM32 Read sensor value&lt;\/title>\r\n  &lt;\/head>\r\n  &lt;body>\r\n    &lt;div class=\"container mt-5\">\r\n      &lt;h1>Sensor data collection from stm32 using Bluetooth Low Energy&lt;\/h1>\r\n      &lt;button id=\"connect\" class=\"btn btn-primary\">Connect&lt;\/button>\r\n      &lt;button id=\"getdata\" class=\"btn btn-success\">Get device data&lt;\/button>\r\n      &lt;div id=\"loader\">&lt;\/div>\r\n      &lt;br \/>\r\n      &lt;div id=\"response\" class=\"fw-bold\">&lt;\/div>\r\n\r\n      &lt;script src=\".\/index.js\">&lt;\/script>\r\n    &lt;\/div>\r\n  &lt;\/body>\r\n&lt;\/html>\r\n<\/code><\/pre>\n\n\n\n<p>Create a js file called script.js and include it at the bottom of the Html file. This js file uses the BleuIO js library to write AT commands and communicate with the other dongle.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import * as my_dongle from 'bleuio'\r\n\r\n\/\/connect to BleuIO\r\ndocument.getElementById('connect').addEventListener('click', function(){\r\n  my_dongle.at_connect()\r\n})\r\n\/\/get sensor data\r\ndocument.getElementById('getdata').addEventListener('click', function(){\r\n  document.getElementById('loader').innerHTML = 'Loading'\r\n  \/\/set the BleuIO dongle into dual role\r\n    my_dongle.at_dual().then(()=>{\r\n      \/\/ sensor id of the device that we are trying to get data from\r\n      let sensorID='05084FA3'\r\n\r\n      \/\/look for advertised data of with the sensor id\r\n        my_dongle.at_findscandata(sensorID,4).then(x=>{        \r\n\r\n          \/\/split the advertised data from the respnse\r\n          let advdata= x&#91;x.length-1].split(\" \").pop()\r\n\r\n          \/\/trim the advertised string to only get sensor response\r\n          const result = advdata.split(sensorID).slice(1).join(sensorID) \r\n\r\n          \/\/get temperature and humidity value\r\n          let temp = result.substring(0, 4);\r\n          let hum = result.substring(4, 8);\r\n\r\n          \/\/convert from hex to decimal and device by 100\r\n          temp = parseInt(temp, 16)\/100\r\n          hum = (parseInt(hum, 16)\/100).toFixed(1)  \r\n\r\n          document.getElementById('loader').innerHTML = ''\r\n          document.getElementById('response').innerHTML = `Sensor ID : 05084FA3 &lt;br\/>\r\n          Temperature : ${temp} \u00b0C&lt;br\/>\r\n          Humidity : ${hum} %rH&lt;br\/>`              \r\n        })\r\n    })\r\n    \r\n  })\r\n<\/code><\/pre>\n\n\n\n<p>The script js file has two button actions; connect and read advertised data.<\/p>\n\n\n\n<p>We also need to update the Sensor ID on line 13 of script js. The Sensor ID of this example project is 05084FA3, which we got from SHT85.<\/p>\n\n\n\n<p>Therefore this script looks for advertised data that contains sensor\u00a0ID 05084FA3. After getting advertised data , we split the temperature and humidity information and show it on our index.html page.<\/p>\n\n\n\n<p>Now we need a web bundler. We can use&nbsp;<a href=\"https:\/\/parceljs.org\/\">parcel.js<\/a><\/p>\n\n\n\n<p>Once parcel js installed, lets go to the root directory and type\u00a0<strong>\u201cparcel index.html\u201d<\/strong>. This will start our development environment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"279\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1.png\" alt=\"\" class=\"wp-image-171\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1.png 831w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-300x101.png 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-768x258.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/figure>\n\n\n\n<p>Lets open the script on a browser and select the right port where the dongle is connected.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"487\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-1.png\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-1.png 966w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-1-300x151.png 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-1-768x387.png 768w\" sizes=\"auto, (max-width: 966px) 100vw, 966px\" \/><\/figure>\n\n\n\n<p>The web script is available on web script folder of the GitHub repository.<em><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The project is showcasing a simple way of using the the BleuIO Dongle to advertise data that the STM32 reads from a sensor which is connected to the STM32 Nucleo-144. Requirments : A BleuIO dongle (https:\/\/www.bleuio.com\/) A SHT85 sensor (https:\/\/sensirion.com\/products\/catalog\/SHT85\/) A board with a STM32 Microcontroller with a USB port. (A Nucleo-144 development board: NUCLEO-H743ZI2, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bleuio","category-bleuio-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy - 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\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"The project is showcasing a simple way of using the the BleuIO Dongle to advertise data that the STM32 reads from a sensor which is connected to the STM32 Nucleo-144. Requirments : A BleuIO dongle (https:\/\/www.bleuio.com\/) A SHT85 sensor (https:\/\/sensirion.com\/products\/catalog\/SHT85\/) A board with a STM32 Microcontroller with a USB port. (A Nucleo-144 development board: NUCLEO-H743ZI2, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-14T10:38:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-01T10:35:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"674\" \/>\n\t<meta property=\"og:image:height\" content=\"478\" \/>\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\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy\",\"datePublished\":\"2022-02-14T10:38:22+00:00\",\"dateModified\":\"2022-07-01T10:35:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/\"},\"wordCount\":658,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/\",\"name\":\"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg\",\"datePublished\":\"2022-02-14T10:38:22+00:00\",\"dateModified\":\"2022-07-01T10:35:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg\",\"width\":674,\"height\":478,\"caption\":\"get sensor data from stm32 using bluetooth low energy\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy\"}]},{\"@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":"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy - 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\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/","og_locale":"en_US","og_type":"article","og_title":"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy - BleuIO - Create Bluetooth Low Energy application","og_description":"The project is showcasing a simple way of using the the BleuIO Dongle to advertise data that the STM32 reads from a sensor which is connected to the STM32 Nucleo-144. Requirments : A BleuIO dongle (https:\/\/www.bleuio.com\/) A SHT85 sensor (https:\/\/sensirion.com\/products\/catalog\/SHT85\/) A board with a STM32 Microcontroller with a USB port. (A Nucleo-144 development board: NUCLEO-H743ZI2, [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2022-02-14T10:38:22+00:00","article_modified_time":"2022-07-01T10:35:55+00:00","og_image":[{"width":674,"height":478,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/get-sensor-data-from-stm32-using-bluetooth-low-energy.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\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy","datePublished":"2022-02-14T10:38:22+00:00","dateModified":"2022-07-01T10:35:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/"},"wordCount":658,"commentCount":0,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg","articleSection":["BleuIO","BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/","url":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/","name":"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg","datePublished":"2022-02-14T10:38:22+00:00","dateModified":"2022-07-01T10:35:55+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/02\/get-sensor-data-from-stm32-using-bluetooth-low-energy.jpg","width":674,"height":478,"caption":"get sensor data from stm32 using bluetooth low energy"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/sensor-data-collection-from-stm32-and-sht85-using-bluetooth-low-energy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sensor data collection from STM32 and SHT85 using Bluetooth Low Energy"}]},{"@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\/161","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=161"}],"version-history":[{"count":2,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions\/175"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/173"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}