{"id":75,"date":"2021-07-14T14:14:31","date_gmt":"2021-07-14T14:14:31","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=75"},"modified":"2022-07-01T08:16:21","modified_gmt":"2022-07-01T08:16:21","slug":"get-bluetooth-device-distance-in-meter-using-javascript","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/","title":{"rendered":"Get Bluetooth Device Distance in meter Using Javascript"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Bluetooth ranging technology is very popular. There are many localization systems that exist based on beacons. Beacon technology usually estimates the distance between devices using the received signal strength (RSSI).&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bluetooth can be an excellent way to narrow down a search area at close distances when tracking something. This feature can be used in several fields. such as Secure Locks for Buildings and Automotive, Asset localization &amp; tracking, Indoor navigation etc<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GPS tracking isn\u2019t excellent at giving accurate measurements of the close distance, especially in the indoor environment. On the other hand, Bluetooth is excellent in short ranges because the waves can go through walls. This might fill the gap that GPS tracking has when tracking devices in indoor spaces.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, most calculations of the distance between two Bluetooth devices are estimates. It\u2019s hard to determine the exact distance between two Bluetooth devices because many factors affect the calculations. Despite the challenges, there are methods to determine the distance between two Bluetooth devices with an accuracy of at least 60-80%.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The ranging method is simple to implement, and it has the formula to calculate the distance between two Bluetooth devices. As the name suggests, both devices need to be within Bluetooth range to estimate the distance.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This article will share a simple script written in JavaScript to determine nearby Bluetooth devices and their distance in meters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This script scans for nearby Bluetooth devices and gets an approximation of the distance by using the well-known RSSI to distance formula.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Read more about how to calculate the distance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/iotandelectronics.wordpress.com\/2016\/10\/07\/how-to-calculate-distance-from-the-rssi-value-of-the-ble-beacon\/\">How to Calculate Distance from the RSSI value of the BLE&nbsp;Beacon<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Requirments<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You need to have a BLE USB dongle BleuIO&nbsp;<a target=\"_blank\" href=\"https:\/\/www.bleuio.com\/\" rel=\"noreferrer noopener\">https:\/\/www.bleuio.com\/<\/a><\/li><li>To run the script, you need a web application bundler. You can use parceljs.&nbsp;<a target=\"_blank\" href=\"https:\/\/parceljs.org\/getting_started.html\" rel=\"noreferrer noopener\">https:\/\/parceljs.org\/getting_started.html<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Instructions<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>git clone https:\/\/github.com\/smart-sensor-devices-ab\/ble_distance_measure.git<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The script will an index.html and script.js file. Index.html is just has a connect and scan for device button. upon connecting we will be able to scan for nearby devices and. Once the scanning is completed we will be able to see a list of devices and their distance from my computer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the index.html file <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html&gt;\n&lt;html lang=\"en\"&gt;\n  &lt;head&gt;\n    &lt;!-- Required meta tags --&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n\n    &lt;!-- Bootstrap CSS --&gt;\n    &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.2\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3\/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\"&gt;\n\n    &lt;title&gt;Get Device Distance Using BleuIO&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;div class=\"container\"&gt; &lt;br&gt;\n    &lt;a href=\"https:\/\/www.bleuio.com\/\"&gt; &lt;img src=\"https:\/\/www.bleuio.com\/images\/logo.png\" alt=\"BleuIO get device distance\"&gt;&lt;\/a&gt;\n    &lt;h1&gt;Get Device Distance Using BleuIO&lt;\/h1&gt;\n&lt;br&gt;\n    &lt;button id=\"connect\" class=\"btn btn-success\"&gt;Connect&lt;\/button&gt;\n&lt;button id=\"scan\" class=\"btn btn-warning\"&gt;Scan Devices&lt;\/button&gt; &amp;nbsp; &amp;nbsp;  &lt;span id=\"scanning\" class=\"d-none\"&gt; scanning ...&lt;\/span&gt;  &lt;br&gt;&lt;br&gt;&lt;br&gt;\n&lt;div id=\"deviceList\"&gt;&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;br&gt;&lt;br&gt;\n&lt;script src=\".\/script.js\"&gt;&lt;\/script&gt;\n\n    &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.2\/dist\/js\/bootstrap.bundle.min.js\" integrity=\"sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn\/tWtIaxVXM\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\n\n\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The script.js file uses bleuio javascript library to connect and scan for BLE devices. Once we get the device list, we try to sort it out by RSSI value and convert RSSI value to distance. Finally we print the result into a table. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the script.js file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import * as my_dongle from 'bleuio'\ndocument.getElementById('connect').addEventListener('click', function(){\n  my_dongle.at_connect()\n})\n\n\/*\nFunctions to converts rssi to distance \nread more at \nhttps:&#47;&#47;iotandelectronics.wordpress.com\/2016\/10\/07\/how-to-calculate-distance-from-the-rssi-value-of-the-ble-beacon\/\n*\/\nconst getDistance =(rssi=&gt;{\n  let n=2\n  let mp=-69\n  return 10 ** ((mp - (rssi))\/(10 * n))\n})\ndocument.getElementById('scan').addEventListener('click', function(){\n  var element = document.getElementById(\"scanning\");\n  element.classList.remove(\"d-none\");\n  my_dongle.at_central().then((data)=&gt;{    \n    my_dongle.at_gapscan(4,false).then((dev)=&gt;{\n      \/\/convert array string to array of object with key value\n      const formated = dev.map((item) =&gt; {\n        const &#91; id, dev,devid,none,rssi,rssival,devname ] = item.split(' ');\n        return { id, dev,devid,none,rssi,rssival,devname};\n      });\n      \/\/array list unique\n      let uniqueArr= formated.filter(y=&gt;y.devname!=undefined)\n      \/\/sort based on rssi value\n      uniqueArr.sort((a, b) =&gt; a.rssival &gt; b.rssival &amp;&amp; 1 || -1)\n      \n      let withDistance= uniqueArr.map(r=&gt;{\n        r.distance=getDistance(r.rssival).toFixed(2)+' meter'\n        return r \n      })\n      \/\/generate output\n      let mytable = `&lt;h2&gt;Device List&lt;\/h2&gt;\n      &lt;table class='table table-striped table-bordered'&gt;\n      &lt;tr&gt;\n      &lt;th&gt;Device&lt;\/th&gt;\n      &lt;th&gt;RSSI&lt;\/th&gt;\n      &lt;th&gt;Distance&lt;\/th&gt;\n      &lt;\/tr&gt;`;\n      withDistance.map(j=&gt;{\n        mytable += \"&lt;tr&gt;&lt;td&gt;\" +j.devid+\" - \"+ j.devname + \"&lt;\/td&gt;&lt;td&gt;\"+ j.rssival+\"&lt;\/td&gt;&lt;td&gt;\"+j.distance+\"&lt;\/td&gt;&lt;\/tr&gt;\";\n      })\n      mytable += \"&lt;\/table&gt;\";\n      document.getElementById(\"deviceList\").innerHTML = mytable;\n      element.classList.add(\"d-none\");\n    })\n  })\n})<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To run this script , we can use a web bundler called parcel. https:\/\/parceljs.org\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">lets go inside the folder and in terminal type.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>parcel index.html<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The script will scan for five seconds for nearby devices. You can update the value based on your requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also run this script from online at<br><a href=\"https:\/\/smart-sensor-devices-ab.github.io\/ble_distance_measure\/dist\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/smart-sensor-devices-ab.github.io\/ble_distance_measure\/dist\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">**<em>Make sure your BleuIO dongle is connected<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/smartsensordevices.com\/wp-content\/uploads\/2021\/07\/image-1.png\" alt=\"\" class=\"wp-image-1225\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/smartsensordevices.com\/wp-content\/uploads\/2021\/07\/image-3-1024x772.png\" alt=\"\" class=\"wp-image-1224\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bluetooth ranging technology is very popular. There are many localization systems that exist based on beacons. Beacon technology usually estimates the distance between devices using the received signal strength (RSSI).&nbsp; Bluetooth can be an excellent way to narrow down a search area at close distances when tracking something. This feature can be used in several [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":76,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-75","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.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Get Bluetooth Device Distance in meter Using Javascript - 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\/get-bluetooth-device-distance-in-meter-using-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get Bluetooth Device Distance in meter Using Javascript - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"Bluetooth ranging technology is very popular. There are many localization systems that exist based on beacons. Beacon technology usually estimates the distance between devices using the received signal strength (RSSI).&nbsp; Bluetooth can be an excellent way to narrow down a search area at close distances when tracking something. This feature can be used in several [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-14T14:14:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-01T08:16:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/01\/distance-measure-bluetooth.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"425\" \/>\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\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"Get Bluetooth Device Distance in meter Using Javascript\",\"datePublished\":\"2021-07-14T14:14:31+00:00\",\"dateModified\":\"2022-07-01T08:16:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/\"},\"wordCount\":510,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/distance-measure-bluetooth.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/\",\"name\":\"Get Bluetooth Device Distance in meter Using Javascript - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/distance-measure-bluetooth.jpg\",\"datePublished\":\"2021-07-14T14:14:31+00:00\",\"dateModified\":\"2022-07-01T08:16:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/distance-measure-bluetooth.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/distance-measure-bluetooth.jpg\",\"width\":700,\"height\":425,\"caption\":\"Get Bluetooth Device Distance\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/get-bluetooth-device-distance-in-meter-using-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Bluetooth Device Distance in meter Using Javascript\"}]},{\"@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":"Get Bluetooth Device Distance in meter Using Javascript - 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\/get-bluetooth-device-distance-in-meter-using-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Get Bluetooth Device Distance in meter Using Javascript - BleuIO - Create Bluetooth Low Energy application","og_description":"Bluetooth ranging technology is very popular. There are many localization systems that exist based on beacons. Beacon technology usually estimates the distance between devices using the received signal strength (RSSI).&nbsp; Bluetooth can be an excellent way to narrow down a search area at close distances when tracking something. This feature can be used in several [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2021-07-14T14:14:31+00:00","article_modified_time":"2022-07-01T08:16:21+00:00","og_image":[{"width":700,"height":425,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/01\/distance-measure-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\/get-bluetooth-device-distance-in-meter-using-javascript\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"Get Bluetooth Device Distance in meter Using Javascript","datePublished":"2021-07-14T14:14:31+00:00","dateModified":"2022-07-01T08:16:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/"},"wordCount":510,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/01\/distance-measure-bluetooth.jpg","articleSection":["BleuIO","BleuIO tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/","url":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/","name":"Get Bluetooth Device Distance in meter Using Javascript - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/01\/distance-measure-bluetooth.jpg","datePublished":"2021-07-14T14:14:31+00:00","dateModified":"2022-07-01T08:16:21+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/01\/distance-measure-bluetooth.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/01\/distance-measure-bluetooth.jpg","width":700,"height":425,"caption":"Get Bluetooth Device Distance"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/get-bluetooth-device-distance-in-meter-using-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Get Bluetooth Device Distance in meter Using Javascript"}]},{"@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\/75","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=75"}],"version-history":[{"count":4,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions\/367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/76"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}