{"id":512,"date":"2023-08-01T23:47:39","date_gmt":"2023-08-01T23:47:39","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=512"},"modified":"2023-08-01T23:47:44","modified_gmt":"2023-08-01T23:47:44","slug":"testing-bluetooth-low-energy-application-with-bleuio-and-jest","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/","title":{"rendered":"Testing Bluetooth Low Energy Application with BleuIO and Jest"},"content":{"rendered":"\n<p>Bluetooth Low Energy (BLE) has become a popular technology for creating wireless communication between devices with low power consumption. When developing BLE applications, it&#8217;s essential to thoroughly test them to ensure they work correctly. This tutorial shows a basic test script that determines the role of a Bluetooth Low Energy (BLE) device and passes the test based on the device role. The test script utilizes the BleuIO Bluetooth Low Energy USB dongle along with a JavaScript Testing Framework. You can modify this script according to your specific needs for testing BLE applications.. We&#8217;ll communicate with the dongle using Node SerialPort, write AT commands, and read back responses from the dongle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Before we start, make sure you have the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.bleuio.com\/\">BleuIO Bluetooth Low Energy USB dongle.<\/a><\/li>\n\n\n\n<li>Node.js and npm installed on your computer.<\/li>\n\n\n\n<li>Basic knowledge of JavaScript and testing concepts.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Setting Up the Environment<\/h2>\n\n\n\n<p>First, connect the BleuIO dongle to your computer. To find the path of the dongle, open your terminal and run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ls \/dev\/cu.*\n<\/code><\/pre>\n\n\n\n<p>Note down the path of the dongle (e.g., <code>\/dev\/cu.usbmodem4048FDE6EBCB1<\/code>).<\/p>\n\n\n\n<p>Next, create a new directory for your project and initialize a Node.js project by running:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>npm init -y\n<\/code><\/pre>\n\n\n\n<p>Now, install the required packages: SerialPort and Jest.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>npm install serialport\nnpm install --save-dev jest\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Writing the Role Check Function<\/h2>\n\n\n\n<p>Create a new file <code>rolecheck.js<\/code> and paste the following code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { SerialPort } from 'serialport';\n\nconst dongleReadWrite = () => {\n  return new Promise((resolve) => {\n    let readDataArray = &#91;];\n    const port = new SerialPort({\n      path: '\/dev\/cu.usbmodem4048FDE6EBCB1', \/\/ Replace this with your dongle's path\n      baudRate: 115200,\n      dataBits: 8,\n      parity: 'none',\n      stopBits: 1,\n    });\n\n    \/\/ Function to write data to the dongle\n    const writeData = async (cmd) => {\n      port.on('open', () => {\n        port.write(cmd + '\\r\\n', (err) => {\n          if (err) {\n            return console.log('Error writing data: ', err.message);\n          }\n        });\n      });\n    };\n\n    \/\/ Function to read data from the dongle\n    const readData = () => {\n      return new Promise(function (resolve, reject) {\n        port.on('readable', () => {\n          let data = port.read();\n          let enc = new TextDecoder();\n          let arr = new Uint8Array(data);\n          arr = enc.decode(arr);\n          let removeRn = arr.replace(\/\\r?\\n|\\r\/gm, '');\n          if (removeRn != null) readDataArray.push(removeRn);\n          return resolve(readDataArray);\n        });\n      });\n    };\n\n    \/\/ Write the command 'AT+GAPSTATUS' to the dongle\n    writeData('AT+GAPSTATUS');\n\n    \/\/ Read the response from the dongle after a delay of 1 second\n    readData().then((data) => {\n      setTimeout(() => {\n        port.close();\n        return resolve(data);\n      }, 1000);\n    });\n  });\n};\n\n\/\/ Function to get the role of the dongle\nexport const getRole = () => {\n  return new Promise((resolve) => {\n    \/\/ Call dongleReadWrite() to fetch data from the dongle\n    dongleReadWrite().then((data) => {\n      const regex = \/(Peripheral|Central)\/i;\n      \/\/ Find the role from the response data using regular expression\n      const roleMatch = data.find((element) => regex.test(element));\n      \/\/ Extract the role ('Peripheral' or 'Central') from the match\n      const role = roleMatch ? roleMatch.match(regex)&#91;0] : null;\n      \/\/ Return the role to the caller\n      return resolve(role);\n    });\n  });\n};\n<\/code><\/pre>\n\n\n\n<p>The <code>getRole()<\/code> function connects to the dongle and writes the command <code>AT+GAPSTATUS<\/code> to find out the role. The response we get is an array, which looks like this <br><strong>[ &#8216;AT+GAPSTATUS&#8217;, &#8216;Peripheral roleNot ConnectedNot Advertising&#8217; ]<br><\/strong>we extract the role information from it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Writing the Test Script<\/h2>\n\n\n\n<p>Create another file <code>rolecheck.test.js<\/code> and paste the following code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>import { getRole } from '.\/rolecheck';\nimport { jest } from '@jest\/globals';\njest.useFakeTimers();\n\ntest('Get peripheral role', async () => {\n  const dataPromise = getRole(); \/\/ Start the data fetching process\n\n  jest.advanceTimersByTime(1000); \/\/ Advance the timer by 1 second\n\n  \/\/ At this point, the timer has advanced by 1 second, but the data is not resolved yet\n  \/\/ We can check that the dataPromise is still pending\n  expect(dataPromise).toBeInstanceOf(Promise);\n\n  jest.advanceTimersByTime(2000); \/\/ Advance the timer by another 2 seconds to complete the 3 seconds\n\n  \/\/ Now, the data should be resolved, and the test should pass if the role is 'Peripheral'\n  expect(dataPromise).resolves.toBe('Peripheral');\n});\n<\/code><\/pre>\n\n\n\n<p>In the test script, we import the <code>getRole()<\/code> function from <code>rolecheck.js<\/code>. We use Jest&#8217;s fake timers to control the asynchronous flow and mimic the behavior of asynchronous code.<\/p>\n\n\n\n<p>The test checks whether the role obtained from the <code>getRole()<\/code> function is <code>'Peripheral'<\/code>. If it is, the test passes; otherwise, it fails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Running the Test<\/h2>\n\n\n\n<p>To execute the test, run the following command in the terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>npm test\n<\/code><\/pre>\n\n\n\n<p>Jest will run the test, and you should see the test results on your terminal.<\/p>\n\n\n\n<p>The response will look like this<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-02-at-00.45.39.png\" alt=\"\" class=\"wp-image-513\" width=\"456\" height=\"140\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-02-at-00.45.39.png 750w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-02-at-00.45.39-300x92.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this tutorial, we explored how to communicate with the BleuIO dongle, write AT commands, and read back responses using a JavaScript Testing Framework (Jest). With the right testing approach, you can ensure the stability and correctness of your BLE application before deploying it to production. Happy testing!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bluetooth Low Energy (BLE) has become a popular technology for creating wireless communication between devices with low power consumption. When developing BLE applications, it&#8217;s essential to thoroughly test them to ensure they work correctly. This tutorial shows a basic test script that determines the role of a Bluetooth Low Energy (BLE) device and passes the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bleuio-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Testing Bluetooth Low Energy Application with BleuIO and Jest - 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\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing Bluetooth Low Energy Application with BleuIO and Jest - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"Bluetooth Low Energy (BLE) has become a popular technology for creating wireless communication between devices with low power consumption. When developing BLE applications, it&#8217;s essential to thoroughly test them to ensure they work correctly. This tutorial shows a basic test script that determines the role of a Bluetooth Low Energy (BLE) device and passes the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-01T23:47:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-01T23:47:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Coding-School-for-Kids-Presentation-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\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\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"Testing Bluetooth Low Energy Application with BleuIO and Jest\",\"datePublished\":\"2023-08-01T23:47:39+00:00\",\"dateModified\":\"2023-08-01T23:47:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/\"},\"wordCount\":408,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Coding-School-for-Kids-Presentation-1.jpg\",\"articleSection\":[\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/\",\"name\":\"Testing Bluetooth Low Energy Application with BleuIO and Jest - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Coding-School-for-Kids-Presentation-1.jpg\",\"datePublished\":\"2023-08-01T23:47:39+00:00\",\"dateModified\":\"2023-08-01T23:47:44+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Coding-School-for-Kids-Presentation-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Coding-School-for-Kids-Presentation-1.jpg\",\"width\":960,\"height\":540,\"caption\":\"Bluetooth low energy testing\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testing Bluetooth Low Energy Application with BleuIO and Jest\"}]},{\"@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":"Testing Bluetooth Low Energy Application with BleuIO and Jest - 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\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/","og_locale":"en_US","og_type":"article","og_title":"Testing Bluetooth Low Energy Application with BleuIO and Jest - BleuIO - Create Bluetooth Low Energy application","og_description":"Bluetooth Low Energy (BLE) has become a popular technology for creating wireless communication between devices with low power consumption. When developing BLE applications, it&#8217;s essential to thoroughly test them to ensure they work correctly. This tutorial shows a basic test script that determines the role of a Bluetooth Low Energy (BLE) device and passes the [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2023-08-01T23:47:39+00:00","article_modified_time":"2023-08-01T23:47:44+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Coding-School-for-Kids-Presentation-1.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\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"Testing Bluetooth Low Energy Application with BleuIO and Jest","datePublished":"2023-08-01T23:47:39+00:00","dateModified":"2023-08-01T23:47:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/"},"wordCount":408,"commentCount":0,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Coding-School-for-Kids-Presentation-1.jpg","articleSection":["BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/","url":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/","name":"Testing Bluetooth Low Energy Application with BleuIO and Jest - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Coding-School-for-Kids-Presentation-1.jpg","datePublished":"2023-08-01T23:47:39+00:00","dateModified":"2023-08-01T23:47:44+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Coding-School-for-Kids-Presentation-1.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2023\/08\/Coding-School-for-Kids-Presentation-1.jpg","width":960,"height":540,"caption":"Bluetooth low energy testing"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/testing-bluetooth-low-energy-application-with-bleuio-and-jest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Testing Bluetooth Low Energy Application with BleuIO and Jest"}]},{"@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\/512","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=512"}],"version-history":[{"count":1,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions\/515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/514"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}