{"id":1062,"date":"2025-01-17T16:47:23","date_gmt":"2025-01-17T16:47:23","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=1062"},"modified":"2025-07-04T09:53:49","modified_gmt":"2025-07-04T09:53:49","slug":"real-time-co2-monitoring-app-with-go-and-bleuio","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/","title":{"rendered":"Real-Time CO\u2082 Monitoring App with Go and BleuIO"},"content":{"rendered":"\n<p>Awareness of\u00a0Air quality monitoring importance for\u00a0health and productivity has\u00a0been increasing lately, especially in indoor environments like offices and homes. In this tutorial, we&#8217;ll demonstrate how to create a real-time CO\u2082 monitoring application using <strong>Go<\/strong>, a modern programming language with a vibrant community, alongside the <strong>BleuIO BLE USB dongle<\/strong> and <strong><a href=\"https:\/\/www.hibouair.com\/standalone-air-quality-monitoring-device.php\" target=\"_blank\" rel=\"noreferrer noopener\">HibouAir<\/a><\/strong>, a BLE-enabled air quality sensor.<\/p>\n\n\n\n<p>This project showcases how to use Go&#8217;s simplicity and performance to build an efficient application that scans for CO\u2082 data, decodes it, and provides <strong>real-time notifications<\/strong> on macOS when the CO\u2082 level exceeds a critical threshold. By using BleuIO\u2019s integrated AT commands, you can focus on your application logic without worrying about complex embedded BLE programming.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Project Overview<\/h2>\n\n\n\n<p>The goal of this project is to:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use <strong>BleuIO<\/strong> to scan for BLE advertisements from <strong>HibouAir<\/strong>, which broadcasts real-time CO\u2082 levels.<\/li>\n\n\n\n<li>Decode the advertised data to extract CO\u2082 concentration.<\/li>\n\n\n\n<li>Send a <strong>real-time macOS notification<\/strong> when CO\u2082 levels exceed a specified threshold (1000 ppm in this example).<\/li>\n<\/ol>\n\n\n\n<p>Notifications are implemented using the macOS <code>osascript<\/code> utility, ensuring you are immediately alerted about high CO\u2082 levels on your laptop screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why This Project Is Useful<\/h2>\n\n\n\n<p>When you&#8217;re focused on work, you might not notice subtle changes in your environment. This application ensures you&#8217;re notified directly on your laptop screen when CO\u2082 levels become unsafe. This is especially helpful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Office Workers<\/strong>: Monitor meeting rooms or shared spaces where ventilation may be insufficient.<\/li>\n\n\n\n<li><strong>Remote Workers<\/strong>: Ensure a healthy workspace at home without distractions.<\/li>\n\n\n\n<li><strong>Educational Settings<\/strong>: Keep classrooms or labs safe for students and staff.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Technical Details<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Tools and Devices<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Programming Language<\/strong>: <a href=\"https:\/\/go.dev\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go<\/a> \u2013 Chosen for its simplicity, performance, and active community.<\/li>\n\n\n\n<li><strong>BLE USB Dongle<\/strong>: <a href=\"https:\/\/www.bleuio.com\" target=\"_blank\" rel=\"noreferrer noopener\">BleuIO<\/a> \u2013 Simplifies BLE communication with built-in AT commands.<\/li>\n\n\n\n<li><strong>CO\u2082 Monitoring Device<\/strong>: <a href=\"https:\/\/www.hibouair.com\/standalone-air-quality-monitoring-device.php\" target=\"_blank\" rel=\"noreferrer noopener\">HibouAir<\/a> \u2013 Provides real-time air quality metrics over BLE.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">How It Works<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Initialize the Dongle<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Set the BleuIO dongle to the <strong>central role<\/strong> to enable scanning for BLE devices.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Scan for Advertised Data<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Use the <code>AT+FINDSCANDATA<\/code> command to scan for HibouAir&#8217;s advertisements containing air quality data.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Decode CO\u2082 Information<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Extract and convert the relevant part of the advertisement to get the CO\u2082 level in ppm.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Send Notifications<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Use Go&#8217;s <code>exec.Command<\/code> to invoke macOS <code>osascript<\/code> and display a desktop notification if the CO\u2082 level exceeds the threshold.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<p>Here is the source code for the project:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>package main<br><br>import (<br>\t\"bufio\"<br>\t\"fmt\"<br>\t\"log\"<br>\t\"os\/exec\"<br>\t\"strconv\"<br>\t\"strings\"<br>\t\"time\"<br><br>\t\"go.bug.st\/serial\"<br>)<br><br>func main() {<br>\t\/\/ Open the serial port<br>\tmode := &amp;serial.Mode{<br>\t\tBaudRate: 9600,<br>\t}<br>\tport, err := serial.Open(\"\/dev\/cu.usbmodem4048FDE52CF21\", mode)<br>\tif err != nil {<br>\t\tlog.Fatalf(\"Failed to open port: %v\", err)<br>\t}<br>\tdefer port.Close()<br><br>\t\/\/ Initial setup: Set the dongle to central mode<br>\terr = setupDongle(port)<br>\tif err != nil {<br>\t\tlog.Fatalf(\"Failed to set up dongle: %v\", err)<br>\t}<br><br>\t\/\/ Repeatedly scan for advertised data and process it<br>\tfor {<br>\t\terr := scanAndProcessData(port)<br>\t\tif err != nil {<br>\t\t\tlog.Printf(\"Error during scan and process: %v\", err)<br>\t\t}<br>\t\ttime.Sleep(10 * time.Second) \/\/ Wait before the next scan (interval)<br>\t}<br>}<br><br>\/\/ setupDongle sets the dongle to central mode<br>func setupDongle(port serial.Port) error {<br>\t_, err := port.Write([]byte(\"AT+CENTRAL\\r\"))<br>\tif err != nil {<br>\t\treturn fmt.Errorf(\"failed to write AT+CENTRAL: %w\", err)<br>\t}<br>\ttime.Sleep(1 * time.Second) \/\/ Ensure the command is processed<br><br>\tbuf := make([]byte, 100)<br>\t_, err = port.Read(buf)<br>\tif err != nil {<br>\t\treturn fmt.Errorf(\"failed to read response from AT+CENTRAL: %w\", err)<br>\t}<br><br>\tfmt.Println(\"Dongle set to central mode.\")<br>\treturn nil<br>}<br><br>\/\/ scanAndProcessData scans for advertised data and processes it<br>func scanAndProcessData(port serial.Port) error {<br>\t_, err := port.Write([]byte(\"AT+FINDSCANDATA=220069=2\\r\"))<br>\tif err != nil {<br>\t\treturn fmt.Errorf(\"failed to write AT+FINDSCANDATA: %w\", err)<br>\t}<br><br>\ttime.Sleep(3 * time.Second) \/\/ Wait for scan to complete<br><br>\tbuf := make([]byte, 1000)<br>\tn, err := port.Read(buf)<br>\tif err != nil {<br>\t\treturn fmt.Errorf(\"failed to read scan response: %w\", err)<br>\t}<br><br>\tresponse := string(buf[:n])<br><br>\t\/\/ Extract the first advertised data<br>\tfirstAdvertisedData := extractFirstAdvertisedData(response)<br>\tif firstAdvertisedData == \"\" {<br>\t\tfmt.Println(\"No advertised data found.\")<br>\t\treturn nil<br>\t}<br><br>\t\/\/ Extract the specific part (6th from last to 3rd from last) and convert to decimal<br>\tif len(firstAdvertisedData) &gt;= 6 {<br>\t\textractedHex := firstAdvertisedData[len(firstAdvertisedData)-6 : len(firstAdvertisedData)-2]<br><br>\t\tdecimalValue, err := strconv.ParseInt(extractedHex, 16, 64)<br>\t\tif err != nil {<br>\t\t\treturn fmt.Errorf(\"failed to convert hex to decimal: %w\", err)<br>\t\t}<br>\t\tfmt.Printf(\"CO\u2082 Value: %d ppm\\n\", decimalValue)<br><br>\t\t\/\/ Send notification if CO\u2082 value exceeds 1000<br>\t\tif decimalValue &gt; 1000 {<br>\t\t\tsendNotification(\"CO\u2082 Alert\", fmt.Sprintf(\"High CO\u2082 level detected: %d ppm\", decimalValue))<br>\t\t}<br>\t} else {<br>\t\tfmt.Println(\"Advertised data is too short to extract the desired part.\")<br>\t}<br>\treturn nil<br>}<br><br>\/\/ extractFirstAdvertisedData extracts the first advertised data from the response<br>func extractFirstAdvertisedData(response string) string {<br>\tscanner := bufio.NewScanner(strings.NewReader(response))<br>\tfor scanner.Scan() {<br>\t\tline := scanner.Text()<br>\t\tif strings.Contains(line, \"Device Data [ADV]:\") {<br>\t\t\tparts := strings.Split(line, \": \")<br>\t\t\tif len(parts) &gt; 1 {<br>\t\t\t\treturn parts[1]<br>\t\t\t}<br>\t\t}<br>\t}<br>\tif err := scanner.Err(); err != nil {<br>\t\tlog.Printf(\"Error scanning response: %v\", err)<br>\t}<br>\treturn \"\"<br>}<br><br>\/\/ sendNotification sends a macOS notification with the specified title and message<br>func sendNotification(title, message string) {<br>\tscript := `display notification \"` + message + `\" with title \"` + title + `\"`<br>\tcmd := exec.Command(\"osascript\", \"-e\", script)<br>\terr := cmd.Run()<br>\tif err != nil {<br>\t\tlog.Printf(\"Error sending notification: %v\", err)<br>\t}<br>}<br><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Source code <\/h2>\n\n\n\n<p>Source code is available on <a href=\"https:\/\/github.com\/smart-sensor-devices-ab\/monitor-realtime-co2-go\">https:\/\/github.com\/smart-sensor-devices-ab\/monitor-realtime-co2-go<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"379\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-2.png\" alt=\"\" class=\"wp-image-1064\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-2.png 600w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-2-300x190.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>This project demonstrates how to build a real-time CO\u2082 monitoring application using Go, BleuIO, and HibouAir. By using Go&#8217;s capabilities and BleuIO&#8217;s ease of use, you can focus on the logic of your application and quickly adapt the solution to your specific needs.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Awareness of\u00a0Air quality monitoring importance for\u00a0health and productivity has\u00a0been increasing lately, especially in indoor environments like offices and homes. In this tutorial, we&#8217;ll demonstrate how to create a real-time CO\u2082 monitoring application using Go, a modern programming language with a vibrant community, alongside the BleuIO BLE USB dongle and HibouAir, a BLE-enabled air quality sensor. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1065,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-1062","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>Real-Time CO\u2082 Monitoring App with Go and BleuIO - 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\/real-time-co2-monitoring-app-with-go-and-bleuio\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Real-Time CO\u2082 Monitoring App with Go and BleuIO - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"Awareness of\u00a0Air quality monitoring importance for\u00a0health and productivity has\u00a0been increasing lately, especially in indoor environments like offices and homes. In this tutorial, we&#8217;ll demonstrate how to create a real-time CO\u2082 monitoring application using Go, a modern programming language with a vibrant community, alongside the BleuIO BLE USB dongle and HibouAir, a BLE-enabled air quality sensor. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-17T16:47:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-04T09:53:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/co2-montior-real-time.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\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\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"Real-Time CO\u2082 Monitoring App with Go and BleuIO\",\"datePublished\":\"2025-01-17T16:47:23+00:00\",\"dateModified\":\"2025-07-04T09:53:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/\"},\"wordCount\":449,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/co2-montior-real-time.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/\",\"name\":\"Real-Time CO\u2082 Monitoring App with Go and BleuIO - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/co2-montior-real-time.jpg\",\"datePublished\":\"2025-01-17T16:47:23+00:00\",\"dateModified\":\"2025-07-04T09:53:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/co2-montior-real-time.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/co2-montior-real-time.jpg\",\"width\":700,\"height\":450},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/real-time-co2-monitoring-app-with-go-and-bleuio\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Real-Time CO\u2082 Monitoring App with Go and BleuIO\"}]},{\"@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":"Real-Time CO\u2082 Monitoring App with Go and BleuIO - 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\/real-time-co2-monitoring-app-with-go-and-bleuio\/","og_locale":"en_US","og_type":"article","og_title":"Real-Time CO\u2082 Monitoring App with Go and BleuIO - BleuIO - Create Bluetooth Low Energy application","og_description":"Awareness of\u00a0Air quality monitoring importance for\u00a0health and productivity has\u00a0been increasing lately, especially in indoor environments like offices and homes. In this tutorial, we&#8217;ll demonstrate how to create a real-time CO\u2082 monitoring application using Go, a modern programming language with a vibrant community, alongside the BleuIO BLE USB dongle and HibouAir, a BLE-enabled air quality sensor. [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2025-01-17T16:47:23+00:00","article_modified_time":"2025-07-04T09:53:49+00:00","og_image":[{"width":700,"height":450,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/co2-montior-real-time.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\/real-time-co2-monitoring-app-with-go-and-bleuio\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"Real-Time CO\u2082 Monitoring App with Go and BleuIO","datePublished":"2025-01-17T16:47:23+00:00","dateModified":"2025-07-04T09:53:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/"},"wordCount":449,"commentCount":0,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/co2-montior-real-time.jpg","articleSection":["BleuIO","BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/","url":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/","name":"Real-Time CO\u2082 Monitoring App with Go and BleuIO - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/co2-montior-real-time.jpg","datePublished":"2025-01-17T16:47:23+00:00","dateModified":"2025-07-04T09:53:49+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/co2-montior-real-time.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/co2-montior-real-time.jpg","width":700,"height":450},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/real-time-co2-monitoring-app-with-go-and-bleuio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Real-Time CO\u2082 Monitoring App with Go and BleuIO"}]},{"@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\/1062","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=1062"}],"version-history":[{"count":4,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/1062\/revisions"}],"predecessor-version":[{"id":1071,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/1062\/revisions\/1071"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/1065"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=1062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=1062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=1062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}