<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bleuio tech</title>
    <description>The latest articles on DEV Community by Bleuio tech (@bleuiot).</description>
    <link>https://dev.to/bleuiot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F750450%2Ff1213bd0-3cf0-4212-915a-ee90ecdf41ea.png</url>
      <title>DEV Community: Bleuio tech</title>
      <link>https://dev.to/bleuiot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bleuiot"/>
    <language>en</language>
    <item>
      <title>Scanning BLE Devices with C++ and Boost Using the BleuIO Dongle</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Mon, 23 Mar 2026 10:00:03 +0000</pubDate>
      <link>https://dev.to/bleuiot/scanning-ble-devices-with-c-and-boost-using-the-bleuio-dongle-32ai</link>
      <guid>https://dev.to/bleuiot/scanning-ble-devices-with-c-and-boost-using-the-bleuio-dongle-32ai</guid>
      <description>&lt;p&gt;Bluetooth Low Energy (BLE) has become one of the most widely used wireless technologies for IoT devices, sensors, wearables, and industrial monitoring systems. Developers working with embedded systems, automation platforms, and hardware integration often rely on &lt;strong&gt;C++&lt;/strong&gt; because of its performance, low-level hardware access, and portability.&lt;/p&gt;

&lt;p&gt;In this tutorial, we will create a simple command-line BLE scanning application using C++. The program connects to the BleuIO USB dongle through a serial port and sends AT commands to control Bluetooth operations. After starting the program, the user enters the number of seconds to scan, and the application instructs the BleuIO dongle to perform a BLE scan and print the detected devices directly in the terminal. This example demonstrates the basic workflow of communicating with BleuIO from a C++ application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why C++ and Boost Are Commonly Used for Bluetooth Development
&lt;/h2&gt;

&lt;p&gt;C++ is widely used in Bluetooth and embedded development because it provides high performance and direct access to hardware interfaces such as serial communication. Many IoT gateways, embedded systems, and industrial applications rely on C++ to interact with sensors and wireless devices. To simplify development, developers often use the Boost libraries, which extend the C++ standard library with reliable cross-platform tools. In this tutorial we use &lt;strong&gt;Boost.Asio&lt;/strong&gt;, which provides a portable and efficient way to handle serial communication and asynchronous input/output across different operating systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;Before starting this project, you should have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  A computer running &lt;strong&gt;macOS, Windows, or Linux&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  A &lt;strong&gt;&lt;a href="https://www.bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO USB dongle&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  A &lt;strong&gt;C++ compiler&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://www.boost.org/doc/user-guide/getting-started.html" rel="noopener noreferrer"&gt;Boost libraries installed&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  Basic knowledge of &lt;strong&gt;C++ and terminal commands&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installing the Required Tools
&lt;/h2&gt;

&lt;h4&gt;
  
  
  macOS Setup
&lt;/h4&gt;

&lt;p&gt;First install &lt;strong&gt;Xcode Command Line Tools&lt;/strong&gt;, which provide the C++ compiler.&lt;/p&gt;

&lt;p&gt;xcode-select --install&lt;/p&gt;

&lt;p&gt;Next install &lt;strong&gt;Homebrew&lt;/strong&gt; if it is not already installed.&lt;/p&gt;

&lt;p&gt;/bin/bash -c "$(curl -fsSL &lt;a href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" rel="noopener noreferrer"&gt;https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&lt;/a&gt;"&lt;/p&gt;

&lt;p&gt;Then install Boost:&lt;/p&gt;

&lt;p&gt;brew install boost&lt;/p&gt;

&lt;p&gt;You can verify the installation using:&lt;/p&gt;

&lt;p&gt;brew --prefix boost&lt;/p&gt;

&lt;h4&gt;
  
  
  Windows Setup
&lt;/h4&gt;

&lt;p&gt;On Windows you will need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Visual Studio or MSVC compiler&lt;/li&gt;
&lt;li&gt;  Boost libraries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Install &lt;strong&gt;Visual Studio Community Edition&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt; Enable &lt;strong&gt;Desktop development with C++&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt; Download Boost from &lt;a href="https://www.boost.org" rel="noopener noreferrer"&gt;https://www.boost.org&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; Extract Boost and configure it for your project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Alternatively, Boost can be installed using &lt;strong&gt;vcpkg&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Have a look into the getting started guide on boost office page&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.boost.org/doc/user-guide/getting-started.html" rel="noopener noreferrer"&gt;https://www.boost.org/doc/user-guide/getting-started.html&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding How the Script Works
&lt;/h2&gt;

&lt;p&gt;The example script uses &lt;strong&gt;Boost.Asio serial communication&lt;/strong&gt; to interact with the BleuIO dongle.&lt;/p&gt;

&lt;p&gt;The application works in several stages.&lt;/p&gt;

&lt;h4&gt;
  
  
  Serial Connection
&lt;/h4&gt;

&lt;p&gt;The program opens a serial port connected to the BleuIO dongle.&lt;/p&gt;

&lt;p&gt;serial_.open(port_name);&lt;/p&gt;

&lt;p&gt;The serial port parameters are configured to match BleuIO’s default UART settings.&lt;/p&gt;

&lt;p&gt;serial_.set_option(serial_port_base::baud_rate(57600));&lt;br&gt;&lt;br&gt;
serial_.set_option(serial_port_base::character_size(8));&lt;br&gt;&lt;br&gt;
serial_.set_option(serial_port_base::parity(serial_port_base::parity::none));&lt;br&gt;&lt;br&gt;
serial_.set_option(serial_port_base::stop_bits(serial_port_base::stop_bits::one));&lt;br&gt;&lt;br&gt;
serial_.set_option(serial_port_base::flow_control(serial_port_base::flow_control::none));&lt;/p&gt;

&lt;h4&gt;
  
  
  Asynchronous Serial Reader
&lt;/h4&gt;

&lt;p&gt;The script uses an asynchronous reader to continuously listen for responses from the BleuIO dongle.&lt;/p&gt;

&lt;p&gt;serial_.async_read_some(...)&lt;/p&gt;

&lt;p&gt;Whenever the dongle sends data, the program prints the received information to the terminal.&lt;/p&gt;

&lt;p&gt;This allows us to see scan results in real time.&lt;/p&gt;

&lt;h4&gt;
  
  
  Sending AT Commands
&lt;/h4&gt;

&lt;p&gt;Commands are sent to BleuIO using the &lt;code&gt;sendCommand()&lt;/code&gt; function.&lt;/p&gt;

&lt;p&gt;bleuio.sendCommand("AT+CENTRAL");&lt;/p&gt;

&lt;p&gt;The command is written to the serial port followed by a carriage return and newline.&lt;/p&gt;

&lt;h4&gt;
  
  
  Setting Central Role
&lt;/h4&gt;

&lt;p&gt;BLE devices can operate in different roles.&lt;br&gt;&lt;br&gt;
Before scanning, the BleuIO dongle must be set to &lt;strong&gt;central mode&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;bleuio.sendCommand("AT+CENTRAL");&lt;/p&gt;

&lt;h4&gt;
  
  
  Starting a BLE Scan
&lt;/h4&gt;

&lt;p&gt;The scan command is then issued.&lt;/p&gt;

&lt;p&gt;AT+GAPSCAN=&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;AT+GAPSCAN=5&lt;/p&gt;

&lt;p&gt;This instructs the BleuIO dongle to scan for nearby BLE devices for five seconds.&lt;/p&gt;

&lt;p&gt;The dongle returns advertising data for detected devices during the scan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Full Source Code
&lt;/h2&gt;

&lt;p&gt;You can find the full source code on GitHub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-cpp-boost" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio-cpp-boost&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository contains the complete C++ script used in this tutorial.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Run the Script
&lt;/h2&gt;

&lt;p&gt;First compile the program.&lt;/p&gt;

&lt;p&gt;clang++ -std=c++17 main.cpp -I$(brew --prefix boost)/include -o bleuio_scan&lt;/p&gt;

&lt;p&gt;After compilation, run the program:&lt;/p&gt;

&lt;p&gt;./bleuio_scan&lt;/p&gt;

&lt;p&gt;The program will ask for the scan duration.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;Enter scan duration in seconds: 5&lt;/p&gt;

&lt;p&gt;The script will then:&lt;/p&gt;

&lt;p&gt;Connect to the BleuIO serial port,Put the dongle into central mode,Start scanning for BLE devices,Print scan results in the terminal&lt;/p&gt;

&lt;p&gt;Example output may look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtty8oc74ikb4gsrnv3i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtty8oc74ikb4gsrnv3i.png" width="744" height="1024"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Locating the BleuIO Serial Port
&lt;/h2&gt;

&lt;p&gt;Before running the program, you need to identify the serial port where the BleuIO dongle is connected.&lt;/p&gt;

&lt;p&gt;On &lt;strong&gt;macOS&lt;/strong&gt;, you can list available serial devices using the terminal command:&lt;/p&gt;

&lt;p&gt;ls /dev/cu.*&lt;/p&gt;

&lt;p&gt;The BleuIO device will typically appear with a name similar to:&lt;/p&gt;

&lt;p&gt;/dev/cu.usbmodemXXXXXXXX&lt;/p&gt;

&lt;p&gt;This value can then be used in the script as the serial port path.&lt;/p&gt;

&lt;p&gt;On &lt;strong&gt;Windows&lt;/strong&gt;, the serial port can be identified through &lt;strong&gt;Device Manager&lt;/strong&gt;. After plugging in the BleuIO dongle, open Device Manager and expand the &lt;strong&gt;Ports (COM &amp;amp; LPT)&lt;/strong&gt; section. The device will appear as a USB serial device with a COM port number, such as &lt;strong&gt;COM17&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Expanding This Example
&lt;/h2&gt;

&lt;p&gt;The script in this tutorial is a basic example showing how to communicate with the BleuIO dongle using C++ and Boost.Asio. Although it only performs BLE scanning, the same approach can be used to send any AT command supported by BleuIO. Developers can extend this example to connect to devices, read GATT characteristics, parse advertisement data, or integrate BLE functionality into larger applications such as IoT gateways, monitoring tools, or automation systems.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>bleuio</category>
      <category>bluetoothlowenergy</category>
    </item>
    <item>
      <title>Integrating BleuIO with Teensy 4.1 – Scanning and Decoding HibouAir Sensor Data (Part 2)</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Mon, 23 Mar 2026 09:58:29 +0000</pubDate>
      <link>https://dev.to/bleuiot/integrating-bleuio-with-teensy-41-scanning-and-decoding-hibouair-sensor-data-part-2-3907</link>
      <guid>https://dev.to/bleuiot/integrating-bleuio-with-teensy-41-scanning-and-decoding-hibouair-sensor-data-part-2-3907</guid>
      <description>&lt;p&gt;In the &lt;strong&gt;&lt;a href="https://www.bleuio.com/blog/integrating-bleuio-with-teensy-4-1-for-seamless-ble-applications/" rel="noopener noreferrer"&gt;previous project&lt;/a&gt;&lt;/strong&gt;, we focused on getting &lt;strong&gt;Teensy 4.1&lt;/strong&gt; working as a USB Host for the &lt;strong&gt;BleuIO&lt;/strong&gt;. The goal was simple: remove the PC from the equation and prove that a microcontroller could directly control BleuIO and communicate over BLE using AT commands.&lt;/p&gt;

&lt;p&gt;This project builds on that foundation and does something practical with it. Instead of manually sending commands and observing responses, we now create a complete scanner that automatically detects nearby HibouAir sensors, reads their BLE advertisement data, decodes it, and prints meaningful environmental values in real time.&lt;/p&gt;

&lt;p&gt;At this point, the system stops being a connectivity demo and becomes an actual application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardware Requirements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://www.digikey.pt/pt/products/detail/sparkfun-electronics/20359/16688101" rel="noopener noreferrer"&gt;Teensy 4.1&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.hibouair.com/specifications-air-quality-monitor-co2-sensor.php" rel="noopener noreferrer"&gt;HibouAir Air quality monitoring sensor&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  USB cable&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.bleuio.com/accessories.php#usbTypeAConnectorBoardv" rel="noopener noreferrer"&gt;USB TYPE A pcb adaptor&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.arduino.cc/en/software/" rel="noopener noreferrer"&gt;Arduino IDE 2.x&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  ArduinoJson library (v7.x or compatible)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Software Requirements
&lt;/h2&gt;

&lt;h5&gt;
  
  
  Install ArduinoJson
&lt;/h5&gt;

&lt;p&gt;This project uses &lt;strong&gt;ArduinoJson&lt;/strong&gt; to parse scan results from BleuIO.&lt;/p&gt;

&lt;p&gt;In Arduino IDE:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Open &lt;strong&gt;Library Manager&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt; Search for &lt;code&gt;arduinojson&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; Install version 7.x or compatible&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ArduinoJson is required to deserialize the JSON scan data received from BleuIO.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4bct5mc8a7rdpbzu8pp7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4bct5mc8a7rdpbzu8pp7.png" width="614" height="808"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How it Works
&lt;/h2&gt;

&lt;p&gt;The architecture remains the same as in Part 1, but now it is used with purpose.&lt;/p&gt;

&lt;p&gt;Teensy operates in USB Host mode and communicates directly with BleuIO. BleuIO handles all Bluetooth Low Energy scanning internally and outputs scan results as structured JSON strings over USB serial. Teensy receives those strings, parses the JSON content, extracts the manufacturer-specific payload, and decodes it into usable values.&lt;/p&gt;

&lt;p&gt;Conceptually, the flow looks like this:&lt;/p&gt;

&lt;p&gt;Teensy 4.1 (USB Host + Application Logic)&lt;br&gt;&lt;br&gt;
        ↓&lt;br&gt;&lt;br&gt;
BleuIO (BLE Scanning Engine)&lt;br&gt;&lt;br&gt;
        ↓&lt;br&gt;&lt;br&gt;
BLE Advertisement Data (JSON)&lt;br&gt;&lt;br&gt;
        ↓&lt;br&gt;&lt;br&gt;
HibouAir Decoder&lt;br&gt;&lt;br&gt;
        ↓&lt;br&gt;&lt;br&gt;
Readable Environmental Measurements&lt;/p&gt;

&lt;p&gt;The important thing to notice here is that Teensy never deals with BLE packets directly. There is no radio handling, no GAP or GATT management, and no BLE stack integration. Everything related to Bluetooth stays inside BleuIO. The microcontroller simply receives structured scan results and processes them like any other data stream.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automatic Startup and Scanning
&lt;/h2&gt;

&lt;p&gt;When the firmware starts, it configures BleuIO automatically. It disables command echo, enables verbose mode, and then sends a filtered scan command:&lt;/p&gt;

&lt;p&gt;AT+FINDSCANDATA=FF5B07&lt;/p&gt;

&lt;p&gt;This tells BleuIO to report only devices containing the HibouAir manufacturer identifier. From that moment, scan results begin arriving continuously as JSON lines.&lt;/p&gt;

&lt;p&gt;Each line contains fields such as the device address and a &lt;code&gt;data&lt;/code&gt; field containing the manufacturer payload in hex format. That hex string is where the sensor readings are encoded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Parsing the JSON Data
&lt;/h2&gt;

&lt;p&gt;Since scan data arrives asynchronously, the project includes a small USB serial line reader. It buffers incoming characters until a newline is detected, ensuring that we always attempt to parse complete JSON messages.&lt;/p&gt;

&lt;p&gt;The ArduinoJson library is used to deserialize each line into a &lt;code&gt;JsonDocument&lt;/code&gt;. Once deserialized, we check that the expected scan fields are present. If so, we extract the hex-encoded manufacturer payload and pass it to the &lt;code&gt;HibouAir&lt;/code&gt; decoder.&lt;/p&gt;

&lt;p&gt;At this stage, the data is still raw — just a long hex string representing packed bytes from the BLE advertisement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decoding the HibouAir Advertisement Payload
&lt;/h2&gt;

&lt;p&gt;The core of this project is the &lt;code&gt;HibouAir&lt;/code&gt; structure. Instead of manually extracting bytes in the main loop, the decoding logic is encapsulated in a dedicated class.&lt;/p&gt;

&lt;p&gt;The constructor receives the JSON document, extracts the &lt;code&gt;data&lt;/code&gt; field, and interprets the hex string as a packed binary structure. Using &lt;code&gt;offsetof()&lt;/code&gt; ensures that the correct byte offsets are used, and helper functions convert the hex pairs into integers. Because the BLE advertisement uses little-endian ordering, some fields require byte swapping before they become meaningful.&lt;/p&gt;

&lt;p&gt;Once decoded, the class provides clean accessor functions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;getTemp()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;getHum()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;getBar()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;getCo2()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;getPM2_5()&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These functions already return properly scaled values. For example, temperature is divided by 10 to convert from raw integer format to degrees Celsius.&lt;/p&gt;

&lt;p&gt;This separation keeps the application logic simple. The main loop only needs to create a &lt;code&gt;HibouAir&lt;/code&gt; object and call &lt;code&gt;show_sensor()&lt;/code&gt; to print the values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example Output
&lt;/h2&gt;

&lt;p&gt;When running the project with a nearby HibouAir sensor, the Serial Monitor shows structured environmental readings like this:&lt;/p&gt;

&lt;p&gt;Sensor ID: 22008C&lt;br&gt;&lt;br&gt;
Light: 14 Lux&lt;br&gt;&lt;br&gt;
Pressure: 1007.3 hPA&lt;br&gt;&lt;br&gt;
Temperature: 22.9 C&lt;br&gt;&lt;br&gt;
Humidity: 14.1 %rh&lt;br&gt;&lt;br&gt;
CO2: 508 ppm&lt;/p&gt;

&lt;p&gt;For particulate matter devices, additional values appear:&lt;/p&gt;

&lt;p&gt;PM 1.0: 0.0 ug/m3&lt;br&gt;&lt;br&gt;
PM 2.5: 1.2 ug/m3&lt;br&gt;&lt;br&gt;
PM 10: 2.5 ug/m3&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjm4iagdfruca2ugyfvqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjm4iagdfruca2ugyfvqk.png" width="800" height="948"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This output is generated directly from BLE advertisements without establishing a connection to the sensor. The sensors simply broadcast their measurements, and the system passively collects and decodes them.&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub Repository
&lt;/h2&gt;

&lt;p&gt;The complete source code for this project is available here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-teensy-hibouair-scanner" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio-teensy-hibouair-scanner&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can clone the repository, install the ArduinoJson library through the Arduino IDE Library Manager, upload the sketch to Teensy 4.1, and run it immediately. The code is modular and organized so you can reuse the USB line reader, the HibouAir decoder, or the scanning logic in your own applications.&lt;/p&gt;

&lt;p&gt;With this foundation in place, several natural extensions become possible. You could store measurements on an SD card, publish them via MQTT, expose them through a REST interface, or even build a complete air-quality gateway. The BLE side does not need to change.&lt;/p&gt;

</description>
      <category>bleuio</category>
      <category>hibouair</category>
      <category>airqualitymonitor</category>
      <category>teensy</category>
    </item>
    <item>
      <title>Integrating BleuIO with Teensy 4.1 for Seamless BLE Applications</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Mon, 16 Feb 2026 12:57:50 +0000</pubDate>
      <link>https://dev.to/bleuiot/integrating-bleuio-with-teensy-41-for-seamless-ble-applications-5b9</link>
      <guid>https://dev.to/bleuiot/integrating-bleuio-with-teensy-41-for-seamless-ble-applications-5b9</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbjwzjxfohmg2ful1fpjh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbjwzjxfohmg2ful1fpjh.jpg" alt="Integrating BleuIO with Teensy 4.1 for Seamless BLE Applications" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this project, we will build a high-performance embedded Bluetooth Low Energy (BLE) host system using the &lt;strong&gt;Teensy 4.1 microcontroller&lt;/strong&gt; and the &lt;strong&gt;&lt;a href="https://bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO USB BLE dongle&lt;/a&gt;&lt;/strong&gt;. The goal is to turn the Teensy into a USB Host controller that communicates directly with BleuIO through a simple Arduino sketch, allowing us to create BLE applications without implementing a full BLE stack on the microcontroller.&lt;/p&gt;

&lt;p&gt;By the end of this project, you will have a fully functional embedded BLE platform where Teensy 4.1 acts as the application controller and BleuIO handles all Bluetooth Low Energy communication internally. You will be able to send AT commands from Teensy to scan for BLE devices, connect to them, read characteristics, and build your own BLE-based solutions. More importantly, you will gain a reusable architecture that can serve as the foundation for industrial gateways, IoT devices, monitoring systems, or custom embedded products.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why We Chose Teensy 4.1
&lt;/h2&gt;

&lt;p&gt;The Teensy 4.1 is built around the powerful NXP i.MX RT1062 ARM Cortex-M7 processor running at 600 MHz. This makes it one of the fastest microcontrollers compatible with the Arduino ecosystem. Its high clock speed, large memory capacity, and hardware floating point support allow it to handle complex logic, real-time data processing, and communication tasks with ease.&lt;/p&gt;

&lt;p&gt;What makes Teensy 4.1 particularly ideal for this project is its USB Host capability. Since BleuIO is a USB device, it requires a host controller to operate independently of a PC. Teensy 4.1 provides exactly that. It allows us to connect BleuIO directly to the microcontroller and build a fully standalone BLE system. The board’s performance headroom ensures stable communication, fast response handling, and scalability for advanced applications.&lt;/p&gt;

&lt;p&gt;Rather than choosing a minimal low-power MCU, we selected Teensy 4.1 because it bridges the gap between traditional microcontrollers and more complex application processors. It gives developers flexibility, speed, and reliability in embedded BLE projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbfhae2a3tsgfz659qse0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbfhae2a3tsgfz659qse0.png" width="604" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Requirements
&lt;/h2&gt;

&lt;p&gt;To build this project, you will need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://www.digikey.pt/pt/products/detail/sparkfun-electronics/20359/16688101" rel="noopener noreferrer"&gt;Teensy 4.1 microcontroller board&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO – Bluetooth Low Energy USB Dongle&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.arduino.cc/en/software/" rel="noopener noreferrer"&gt;Arduino IDE 2.x&lt;/a&gt; (2.0.4 or later recommended)&lt;/li&gt;
&lt;li&gt;  Teensy board support package (Teensyduino)&lt;/li&gt;
&lt;li&gt;  USB cable for programming&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Project Architecture Overview
&lt;/h2&gt;

&lt;p&gt;The system architecture is straightforward. Teensy 4.1 operates as a USB Host and communicates directly with the BleuIO dongle over serial. BleuIO then manages all Bluetooth Low Energy communication with nearby BLE devices. This separation of responsibilities simplifies development significantly. Teensy focuses on application logic, while BleuIO handles the BLE stack internally.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Teensy 4.1 (USB Host)
        ↓
BleuIO USB Dongle
        ↓
BLE Devices
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How the Project Works – Step-by-Step
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Step 1: Install Arduino IDE and Teensy Support
&lt;/h4&gt;

&lt;p&gt;First &lt;a href="https://www.arduino.cc/en/software" rel="noopener noreferrer"&gt;download the Arduino 2.x.x IDE&lt;/a&gt; from Arduino’s website. All versions 2.0.4 and later are supported. Versions 2.3.0 or later are recommended, due to improvements in Boards Manager. &lt;/p&gt;

&lt;p&gt;To install Teensy on Arduino IDE 2.x, click File &amp;gt; Preferences (on MacOS, click Arduino IDE &amp;gt; Settings). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F55r55qpfdzvtpfg6ybcy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F55r55qpfdzvtpfg6ybcy.png" width="800" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the main Arduino window, open Boards Manager by clicking the left-side board icon, search for “teensy”, and click “Install”. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fajpkce1bllq7jt29nx6s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fajpkce1bllq7jt29nx6s.png" width="228" height="345"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Configure USB Type
&lt;/h3&gt;

&lt;p&gt;Teensy supports multiple USB configurations. Under &lt;strong&gt;Tools → USB Type&lt;/strong&gt;, select the appropriate mode so the board can manage serial communication while operating with USB Host functionality. Teensyduino is also &lt;a href="https://www.pjrc.com/teensy/td_libs.html" rel="noopener noreferrer"&gt;compatible with many Arduino libraries&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faa4xilf4tz5uredaa75m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faa4xilf4tz5uredaa75m.png" width="672" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Upload the Sketch
&lt;/h3&gt;

&lt;p&gt;The source code for this project, &lt;code&gt;USBtoUSBHostSerial.ino&lt;/code&gt; sketch, is publicly available on GitHub: &lt;a href="https://github.com/smart-sensor-devices-ab/bleuio_Teensy_host" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio_Teensy_host&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upload the provided &lt;code&gt;USBtoUSBHostSerial.ino&lt;/code&gt; sketch to the Teensy 4.1 using the Arduino IDE. This sketch initializes the USB Host interface and establishes a communication bridge between the Teensy and the BleuIO dongle. Once programmed, the Teensy essentially becomes a serial terminal for BleuIO, allowing you to type AT commands through the Arduino Serial Monitor and receive responses in real time.&lt;/p&gt;

&lt;p&gt;Instead of embedding complex BLE logic in the microcontroller firmware, the sketch focuses on maintaining stable USB communication and forwarding user commands to the dongle. BleuIO processes these commands internally and returns structured responses. This design keeps the firmware clean, modular, and easy to expand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8riyttxi1t27xx7snpb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8riyttxi1t27xx7snpb.png" width="800" height="774"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Approach Is Powerful
&lt;/h2&gt;

&lt;p&gt;Developing BLE applications directly on microcontrollers traditionally requires integrating a BLE stack, managing connection states, handling security layers, parsing protocol events, and debugging complex timing issues. This process can be time-consuming and hardware-dependent. Each microcontroller family often requires a different SDK, stack configuration, and maintenance strategy.&lt;/p&gt;

&lt;p&gt;By using &lt;strong&gt;BleuIO&lt;/strong&gt;, this complexity is dramatically reduced. BLE functionality is abstracted behind a simple AT command interface. The microcontroller does not need to manage low-level BLE operations. Instead, it communicates using straightforward serial commands while BleuIO takes care of scanning, connecting, reading characteristics, and maintaining protocol compliance internally. This modular architecture makes the system portable across hardware platforms and reduces firmware complexity, development time, and maintenance effort.&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub Repository
&lt;/h2&gt;

&lt;p&gt;The source code for this project, &lt;code&gt;USBtoUSBHostSerial.ino&lt;/code&gt; sketch, is publicly available on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio_Teensy_host" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio_Teensy_host&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This project is shared as a public example to demonstrate how BleuIO can be integrated into high-performance embedded systems. It is intentionally simple in structure so that developers can clearly understand the architecture and reuse it in their own applications.&lt;/p&gt;

&lt;p&gt;By combining the computational power of Teensy 4.1 with the modular BLE capabilities of BleuIO, we created a clean and scalable embedded architecture. This project highlights how BLE integration does not need to be complicated. With the right approach, developers can focus on innovation and application logic rather than low-level protocol management.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bleuio</category>
      <category>teensy</category>
    </item>
    <item>
      <title>Developing a Desktop BLE Air-Quality Application with Rust, Dioxus, and BleuIO</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Mon, 02 Feb 2026 13:40:14 +0000</pubDate>
      <link>https://dev.to/bleuiot/developing-a-desktop-ble-air-quality-application-with-rust-dioxus-and-bleuio-2d2o</link>
      <guid>https://dev.to/bleuiot/developing-a-desktop-ble-air-quality-application-with-rust-dioxus-and-bleuio-2d2o</guid>
      <description>&lt;p&gt;Bluetooth Low Energy is often associated with mobile apps, embedded firmware, or cloud gateways. In practice, however, BLE is equally powerful on the desktop. With the right tools, a desktop application can scan, decode, and visualize BLE sensor data in real time—without relying on browsers or mobile platforms.&lt;/p&gt;

&lt;p&gt;In this tutorial, we demonstrate how &lt;strong&gt;BleuIO&lt;/strong&gt; can be used as a flexible BLE interface for desktop applications written in &lt;strong&gt;Rust&lt;/strong&gt;, using the &lt;strong&gt;Dioxus&lt;/strong&gt; framework. The result is a native desktop application that scans nearby &lt;strong&gt;HibouAir&lt;/strong&gt; sensors, decodes their BLE advertisement data, and presents air-quality metrics in a clean, responsive user interface.&lt;/p&gt;

&lt;p&gt;This project is intended as a practical example that shows how BleuIO fits naturally into modern desktop development workflows—regardless of programming language.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Are Building
&lt;/h2&gt;

&lt;p&gt;The application is a native desktop air-quality dashboard. It connects to a BleuIO USB dongle over a serial port, puts the dongle into BLE scanning mode, and continuously listens for BLE advertisements from nearby HibouAir sensors. These advertisements contain manufacturer-specific data with environmental measurements such as CO2 concentration, particulate matter, temperature, humidity, pressure, VOC levels, and ambient light.&lt;/p&gt;

&lt;p&gt;The desktop application decodes this data locally and displays it in real time. Each detected sensor is shown as its own panel, with a clear header identifying the device type and a structured content area showing the latest measurements.&lt;/p&gt;

&lt;p&gt;The entire solution runs locally on the user’s computer. There is no cloud dependency, no browser runtime, and no mobile device involved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Rust and Dioxus?
&lt;/h2&gt;

&lt;p&gt;Rust has become increasingly popular for system-level and desktop applications because it combines performance, memory safety, and strong tooling. For BLE applications that involve continuous serial communication and real-time data processing, these properties are particularly valuable.&lt;/p&gt;

&lt;p&gt;Dioxus is a Rust UI framework inspired by modern component-based design. It allows developers to build native desktop interfaces using a declarative approach while still compiling to a true desktop binary. In this project, Dioxus is used to render the dashboard, manage state updates as sensor data arrives, and keep the UI responsive even during continuous BLE scanning.&lt;/p&gt;

&lt;p&gt;The combination of Rust, Dioxus, and BleuIO demonstrates that desktop BLE applications do not need to rely on platform-specific SDKs or heavyweight frameworks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;To run this project, the following hardware and software are required:&lt;/p&gt;

&lt;h3&gt;
  
  
  Hardware
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://www.bleuio.com/" rel="noopener noreferrer"&gt;BleuIO USB BLE dongle&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://www.hibouair.com/" rel="noopener noreferrer"&gt;HibouAir air-quality sensor&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Software
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Rust toolchain (stable)&lt;/strong&gt;
&lt;a href="https://www.rust-lang.org/tools/install" rel="noopener noreferrer"&gt;https://www.rust-lang.org/tools/install&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Dioxus CLI&lt;/strong&gt;
&lt;a href="https://dioxuslabs.com/learn/0.5/getting_started" rel="noopener noreferrer"&gt;https://dioxuslabs.com/learn/0.5/getting_started&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  A supported desktop operating system (macOS, Linux, or Windows)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No proprietary SDKs or BLE drivers are required. BleuIO communicates using standard AT commands over a serial interface, making the setup lightweight and portable.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the Project Works Internally
&lt;/h2&gt;

&lt;p&gt;When the application starts, it first searches for a connected BleuIO dongle by scanning available serial ports and matching the dongle’s USB vendor and product IDs. Once the correct device is found, the application opens the serial port and initializes the dongle by disabling command echo and enabling verbose mode.&lt;/p&gt;

&lt;p&gt;After initialization, the application instructs BleuIO to start scanning for BLE advertisements that match HibouAir’s manufacturer identifier. BleuIO then streams scan results back to the application as JSON-formatted lines over the serial connection.&lt;/p&gt;

&lt;p&gt;Each incoming scan packet is parsed and inspected. The application locates the BLE manufacturer-specific data, verifies that it belongs to HibouAir, and decodes the payload into a structured Rust data type. To ensure stable and predictable readings, only the full advertisement format used by HibouAir beacon type &lt;code&gt;0x05&lt;/code&gt; is processed. Partial or auxiliary beacon formats are ignored in this example project.&lt;/p&gt;

&lt;p&gt;Decoded sensor data is stored in memory and immediately reflected in the user interface. As new advertisements arrive, the corresponding sensor panel updates automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Structure
&lt;/h2&gt;

&lt;p&gt;The source code is organized into clear, functional modules. UI components are separated from BLE logic and data models, making the project easy to understand and extend. The main application entry point configures the desktop window and mounts the dashboard component. BLE communication is encapsulated in a dedicated hook that runs asynchronously and feeds decoded sensor data into the UI layer.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;src/
├── components/
│   ├── dashboard.rs
│   ├── sensor_panel.rs
│   └── mod.rs
├── hooks/
│   ├── use_bleuio.rs
│   └── mod.rs
├── models/
│   ├── bleuio.rs
│   ├── hibouair.rs
│   ├── sensor_data.rs
│   └── mod.rs
├── main.rs
assets/
├── main.css
├── tailwind.css
└── favicon.ico
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This structure mirrors how larger Rust desktop applications are typically organized, and it provides a solid foundation for adding features such as data logging, historical charts, filtering, or export functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Source Code and How to Run the Project
&lt;/h2&gt;

&lt;p&gt;The complete source code for this project is publicly available on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/smart-sensor-devices-ab/hibouair-bleuio-rust-readltime-desktop" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/hibouair-bleuio-rust-readltime-desktop&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After cloning the repository, the application can be run in development mode using the Dioxus CLI. This launches the desktop window and enables hot reloading, which is useful when experimenting with UI changes or decoding logic. The project can also be built and run using standard Cargo commands, producing a native desktop binary.&lt;/p&gt;

&lt;p&gt;Because the code is open and self-contained, developers are free to study it, modify it, or reuse parts of it in their own BLE-based desktop applications.&lt;/p&gt;

&lt;p&gt;The complete instruction on how to run this project is available on the &lt;strong&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/hibouair-bleuio-rust-readltime-desktop/blob/master/README.md" rel="noopener noreferrer"&gt;Readme file&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Application Output
&lt;/h2&gt;

&lt;p&gt;When running, the application displays a dashboard with one panel per detected HibouAir sensor. Each panel includes a colored header identifying the sensor type, followed by a white content area showing live air-quality measurements. Values update continuously as new BLE advertisements are received, providing an immediate view of the surrounding environment.&lt;/p&gt;

&lt;p&gt;A screenshot of the running application is shown below to illustrate the final result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8iui38k7ipk7ka2wikub.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8iui38k7ipk7ka2wikub.png" width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This project is intentionally kept simple. It is not a finished product, but rather an educational example that demonstrates how &lt;strong&gt;BleuIO can be used with Rust and Dioxus to build a native desktop BLE application&lt;/strong&gt;. The source code is public, easy to follow, and designed to be extended.&lt;/p&gt;

</description>
      <category>bleuio</category>
      <category>bluetooth</category>
      <category>rust</category>
      <category>airquality</category>
    </item>
    <item>
      <title>Building a BLE Device Detection Web App with Phoenix and BleuIO</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Wed, 31 Dec 2025 11:14:12 +0000</pubDate>
      <link>https://dev.to/bleuiot/building-a-ble-device-detection-web-app-with-phoenix-and-bleuio-4bpm</link>
      <guid>https://dev.to/bleuiot/building-a-ble-device-detection-web-app-with-phoenix-and-bleuio-4bpm</guid>
      <description>&lt;p&gt;In this tutorial, we build a simple but practical web application that demonstrates how &lt;strong&gt;&lt;a href="https://www.bleuio.com/index.php" rel="noopener noreferrer"&gt;BleuIO&lt;/a&gt;&lt;/strong&gt; can be integrated with a modern web framework to interact with Bluetooth Low Energy (BLE) devices in real time. The goal of this project is not to create a full-featured product, but to provide a &lt;strong&gt;clear example&lt;/strong&gt; that developers can learn from and extend for their own use cases.&lt;/p&gt;

&lt;p&gt;The application connects to a BleuIO USB dongle via a serial port, enables verbose mode, performs a BLE scan, and detects whether a specific nearby BLE device is present. If the target device is found, the application displays its MAC address. This approach is particularly useful for scenarios such as &lt;strong&gt;proximity detection&lt;/strong&gt;, presence monitoring, or gateway-style BLE integrations.&lt;/p&gt;

&lt;p&gt;The complete source code for this project is provided separately so developers can easily clone, modify, and build upon it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Phoenix Framework?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.phoenixframework.org/" rel="noopener noreferrer"&gt;Phoenix is a web framework&lt;/a&gt;&lt;/strong&gt; written in &lt;strong&gt;Elixir&lt;/strong&gt; and built on top of the &lt;strong&gt;Erlang/OTP&lt;/strong&gt; ecosystem. It is designed for applications that require high concurrency, real-time updates, and long-running background processes. These characteristics make Phoenix particularly suitable for hardware-integrated applications where continuous communication with external devices is required.&lt;/p&gt;

&lt;p&gt;In this project, Phoenix allows the BleuIO serial connection to remain open while BLE scan results are streamed to the web interface. The framework handles process supervision, message passing, and real-time UI updates in a clean and reliable way, without the need for complex front-end JavaScript logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  How This Differs from a JavaScript-Based Web App
&lt;/h2&gt;

&lt;p&gt;This project does not use the Web Serial API. Web Serial allows browser-based JavaScript applications to access serial devices, but it is primarily intended for interactive, user-driven scenarios. It requires explicit user permission, depends on browser support, and is not suitable for unattended or always-on systems.&lt;/p&gt;

&lt;p&gt;By contrast, this Phoenix-based approach keeps all BLE logic on the backend. The web interface simply reflects the current state of the system and allows the user to trigger actions such as connecting or rescanning. This separation makes the application easier to extend, easier to deploy, and more suitable for real-world integrations where reliability and continuous operation are important.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;To follow this tutorial, you will need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  A computer&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;A BleuIO USB dongle&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.closebeacon.com/" rel="noopener noreferrer"&gt;A Close beacon&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  Elixir and Phoenix installed on your system&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How the Application Works
&lt;/h2&gt;

&lt;p&gt;The application follows a straightforward process. The user enters the serial port name where the BleuIO dongle is connected and initiates the connection from the web interface. Once connected, the application sends an AT command to enable verbose mode, making the responses easier to read and parse.&lt;/p&gt;

&lt;p&gt;After verbose mode is enabled, the application starts a timed BLE scan. As scan results arrive from BleuIO, they are analyzed in real time. If a BLE device advertising the configured target name is detected, the application extracts its MAC address and updates the interface accordingly. The user can repeat the scan at any time using the rescan option.&lt;/p&gt;

&lt;p&gt;All serial communication and BLE processing run in the background, while the web interface updates automatically based on events generated by the backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running the Application
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Installing Phoenix
&lt;/h3&gt;

&lt;p&gt;Phoenix can be installed on macOS using standard tooling for Elixir. Once Elixir is installed, Phoenix can be added using the official project generator. Detailed installation steps are included in the project documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Running the App
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Download the source code&lt;/strong&gt; from &lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-phoenix-erlang" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio-phoenix-erlang&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After downloading the source code:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Install dependencies&lt;/li&gt;
&lt;li&gt; Start the Phoenix server&lt;/li&gt;
&lt;li&gt; Open the application in a browser&lt;/li&gt;
&lt;li&gt; Enter the BleuIO serial port&lt;/li&gt;
&lt;li&gt; Click &lt;strong&gt;Connect&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt; View scan results and detected devices&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Follow &lt;strong&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-phoenix-erlang/blob/master/README.md" rel="noopener noreferrer"&gt;README.md&lt;/a&gt;&lt;/strong&gt; for more details&lt;/p&gt;

&lt;p&gt;The application runs locally and does not require any cloud services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring the Serial Port and Target Device
&lt;/h2&gt;

&lt;p&gt;Two key parameters are intentionally easy to modify:&lt;/p&gt;

&lt;h3&gt;
  
  
  Serial Port
&lt;/h3&gt;

&lt;p&gt;The serial port used by BleuIO can be updated either through the web interface or in the configuration file (config&amp;gt;runtime.exs). This allows the project to run on different machines without code changes.&lt;/p&gt;

&lt;p&gt;The serial port name depends on the operating system being used. On macOS, BleuIO typically appears as a device starting with &lt;code&gt;/dev/cu.usbmodem&lt;/code&gt;. On Linux systems, the dongle is commonly available as &lt;code&gt;/dev/ttyUSB0&lt;/code&gt; or &lt;code&gt;/dev/ttyACM0&lt;/code&gt;, depending on the system configuration. On Windows, BleuIO appears as a COM port, such as &lt;code&gt;COM3&lt;/code&gt; or &lt;code&gt;COM5&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Target BLE Device
&lt;/h3&gt;

&lt;p&gt;The application looks for a specific BLE device name during scanning. This name is defined as a constant in the backend code on lib&amp;gt;bleuio_phx&amp;gt;bleuio_worker.ex and is matched &lt;strong&gt;case-insensitively&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proximity Detection and CloseBeacon Use Case
&lt;/h2&gt;

&lt;p&gt;In the example implementation, the application detects a device advertising the name &lt;code&gt;closebeacon.com&lt;/code&gt;. This makes the project suitable for proximity detection use cases, such as presence awareness, zone monitoring, or asset tracking.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyn3macne4dhpteyuitz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyn3macne4dhpteyuitz.png" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BLE beacons like CloseBeacon are commonly used in proximity-based systems, and this project demonstrates how BleuIO can serve as a reliable BLE scanning interface for such applications. More information about CloseBeacon can be found at &lt;a href="https://www.closebeacon.com/" rel="noopener noreferrer"&gt;https://www.closebeacon.com/&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How This Project Helps Developers
&lt;/h2&gt;

&lt;p&gt;This tutorial is intended as an example project rather than a finished solution. It shows how BleuIO can be integrated with a backend web framework to handle BLE scanning in a clean and scalable way. Developers can use this project as a reference to understand the overall architecture and then build their own custom logic on top of it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-phoenix-erlang" rel="noopener noreferrer"&gt;The complete source code&lt;/a&gt; is provided so that anyone interested can explore the implementation details, experiment with different configurations, and adapt the project for their own BLE-enabled applications.&lt;/p&gt;

&lt;p&gt;By combining BleuIO with Phoenix, developers can build BLE-enabled web applications that are not limited by browser APIs or client-side constraints. This example demonstrates a backend-first approach to BLE scanning that is well suited for gateways, monitoring tools, and proximity detection systems.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bleuio</category>
      <category>elixir</category>
    </item>
    <item>
      <title>Sending BLE Air Quality Data to Arduino Cloud Using BleuIO</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Wed, 17 Dec 2025 10:03:34 +0000</pubDate>
      <link>https://dev.to/bleuiot/sending-ble-air-quality-data-to-arduino-cloud-using-bleuio-f3</link>
      <guid>https://dev.to/bleuiot/sending-ble-air-quality-data-to-arduino-cloud-using-bleuio-f3</guid>
      <description>&lt;p&gt;Bluetooth Low Energy (BLE) devices are widely used for environmental monitoring, but getting their data into the cloud often requires complex SDKs, gateways, or proprietary platforms. In this tutorial, we demonstrate a simple and flexible alternative: sending &lt;strong&gt;BLE advertisement data directly to Arduino Cloud&lt;/strong&gt; using &lt;strong&gt;BleuIO&lt;/strong&gt; as a USB BLE gateway.&lt;/p&gt;

&lt;p&gt;In this project, we build a lightweight data pipeline where a HibouAir air quality sensor broadcasts environmental data over BLE advertisements, BleuIO scans and captures that data, a Python script decodes the values, and the results are sent straight to &lt;strong&gt;Arduino Cloud&lt;/strong&gt; for storage and visualization — all using free tools.&lt;/p&gt;

&lt;p&gt;This project is designed as a &lt;strong&gt;showcase example&lt;/strong&gt; to illustrate how BLE development and cloud integration can be done quickly and transparently, without BLE SDKs or embedded firmware development.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Arduino Cloud?
&lt;/h2&gt;

&lt;p&gt;Arduino Cloud offers a convenient and reliable platform for storing and visualizing IoT data without the need to build and maintain a custom backend. Although it is often associated with Arduino hardware, the platform supports Manual Devices, which makes it suitable for gateway-based solutions where data originates from external devices such as BLE sensors. In this project, Arduino Cloud serves as a secure endpoint where decoded air quality data can be published using standard MQTT communication. Its integrated dashboards allow developers to quickly visualize sensor data, making it especially useful for prototyping, demonstrations, and proof-of-concept projects that require minimal setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardware and Software Requirements
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Hardware
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://www.hibouair.com/specifications-air-quality-monitor-co2-sensor.php" rel="noopener noreferrer"&gt;&lt;strong&gt;HibouAir&lt;/strong&gt; CO2 air quality monitor&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.bleuio.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;BleuIO&lt;/strong&gt; Bluetooth Low Energy USB dongle&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Software
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;  Python 3.9 or later&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;pyserial&lt;/code&gt; Python library&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;arduino-iot-cloud&lt;/code&gt; Python library&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://app.arduino.cc/dashboards" rel="noopener noreferrer"&gt;Arduino Cloud&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No embedded programming or BLE SDKs are required.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the System Works
&lt;/h2&gt;

&lt;p&gt;The HibouAir device periodically broadcasts air quality data within its BLE advertisement payload. BleuIO continuously scans for nearby BLE advertisements and filters packets that match a specific device identifier. When a matching advertisement is detected, the Python gateway script extracts the raw data and applies decoding logic to convert the hexadecimal values into human-readable measurements. These decoded values are then published to Arduino Cloud using authenticated MQTT communication. The entire process runs continuously, enabling real-time data updates without establishing a persistent BLE connection to the sensor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arduino Cloud Setup (Step by Step)
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Step 1: Create or Log In to Arduino Cloud
&lt;/h4&gt;

&lt;p&gt;Go to:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;&lt;a href="https://app.arduino.cc/dashboards" rel="noopener noreferrer"&gt;https://app.arduino.cc/dashboards&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create a free account or log in to your existing one. After login Arduino Cloud will generate&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Device ID&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Secret Key&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Save these securely — they will be used in the Python script.&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 2: Create a Device
&lt;/h4&gt;

&lt;p&gt;Navigate to:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;&lt;a href="https://app.arduino.cc/devices" rel="noopener noreferrer"&gt;https://app.arduino.cc/devices&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Click &lt;strong&gt;Add Device&lt;/strong&gt; from left menu&lt;/li&gt;
&lt;li&gt;  Choose &lt;strong&gt;Manual Device&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  Name the device &lt;strong&gt;HibouAir&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  Step 3: Create a Thing
&lt;/h4&gt;

&lt;p&gt;When prompted after creating device, create a new Thing and name it &lt;strong&gt;HibouAir Thing&lt;/strong&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 4: Add Cloud Variables
&lt;/h4&gt;

&lt;p&gt;Add the following variables to the Thing:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variable Name&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;co2_ppm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;CO₂ concentration (ppm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;temperature_c&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;float&lt;/td&gt;
&lt;td&gt;Temperature in °C&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;humidity_rh&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;float&lt;/td&gt;
&lt;td&gt;Relative humidity (%)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2cakm27yhcn36bg6lwzf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2cakm27yhcn36bg6lwzf.png" width="758" height="578"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 5: Create a Dashboard
&lt;/h4&gt;

&lt;p&gt;Go back to &lt;strong&gt;Dashboards&lt;/strong&gt; and create a new dashboard.&lt;/p&gt;

&lt;p&gt;Add widgets such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Value widget for CO2&lt;/li&gt;
&lt;li&gt;  Gauge widget for temperature&lt;/li&gt;
&lt;li&gt;  Chart widget for humidity over time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3j7ezlzg3goey9bmiw59.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3j7ezlzg3goey9bmiw59.png" width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your cloud setup is now complete.&lt;/p&gt;
&lt;h2&gt;
  
  
  Project Source Code
&lt;/h2&gt;

&lt;p&gt;Clone or download the project from GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-to-arduino-cloud" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio-to-arduino-cloud&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  Configure &lt;code&gt;secrets.py&lt;/code&gt;
&lt;/h4&gt;

&lt;p&gt;Update the following values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DEVICE_ID = "YOUR_DEVICE_ID"
SECRET_KEY = "YOUR_SECRET_KEY"
SERIAL_PORT = "/dev/tty.usbmodemXXXX"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure the serial port matches where BleuIO is connected.&lt;/p&gt;

&lt;h4&gt;
  
  
  Configure &lt;code&gt;gateway.py&lt;/code&gt;
&lt;/h4&gt;

&lt;p&gt;In &lt;code&gt;gateway.py&lt;/code&gt;, update the scan command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SCAN_CMD = "AT+FINDSCANDATA=220069=3"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, &lt;code&gt;220069&lt;/code&gt; is the &lt;strong&gt;HibouAir board ID&lt;/strong&gt; used in the BLE advertisement.&lt;br&gt;&lt;br&gt;
If your HibouAir device uses a different ID, update this value accordingly.&lt;/p&gt;
&lt;h2&gt;
  
  
  Running the Project
&lt;/h2&gt;

&lt;p&gt;Once the Arduino Cloud configuration and local script setup are complete, running the project requires only a single command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python3 gateway.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the gateway script is executed, BleuIO is placed into dual-role mode and begins scanning for BLE advertisements that match the specified HibouAir board identifier. As advertisement packets are received, the script decodes the sensor values and immediately publishes them to Arduino Cloud. Within moments, the dashboard begins displaying live air quality data. This continuous loop allows the system to operate as a real-time BLE-to-cloud gateway with minimal overhead.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsim3kcu5tpxwg5kfp8gk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsim3kcu5tpxwg5kfp8gk.png" width="800" height="706"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Customizing the Dashboard
&lt;/h2&gt;

&lt;p&gt;Arduino Cloud dashboards can be customized to present air quality data in a way that best fits the user’s needs. Live values can be displayed using numeric widgets, gauges can be used to visualize ranges such as CO2 concentration or temperature, and chart widgets can be added to show trends over time. By arranging and configuring these widgets, users can create a clear and informative interface for monitoring indoor air quality. This flexibility makes the dashboard suitable not only for development and testing, but also for presentations and live demonstrations.&lt;/p&gt;

&lt;p&gt;This project demonstrates how BLE advertisement data can be efficiently captured and delivered to the cloud using a minimal and transparent approach. By combining HibouAir sensors, BleuIO, a simple Python gateway, and Arduino Cloud, it is possible to create a complete end-to-end monitoring solution without relying on complex SDKs or embedded firmware development. While this tutorial focuses on air quality data, the same method can be extended to other BLE-based sensors and cloud platforms. As a showcase example, it highlights the flexibility of BleuIO as a BLE development tool and provides a solid foundation for developers who want to build and expand their own BLE-enabled cloud solutions.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bleuio</category>
      <category>hibouair</category>
      <category>arduino</category>
    </item>
    <item>
      <title>Integrating BleuIO with Adafruit Feather RP2040 for Seamless BLE Applications – Part 5 (Two-Way Communication)</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Fri, 05 Dec 2025 15:13:58 +0000</pubDate>
      <link>https://dev.to/bleuiot/integrating-bleuio-with-adafruit-feather-rp2040-for-seamless-ble-applications-part-5-two-way-5nf</link>
      <guid>https://dev.to/bleuiot/integrating-bleuio-with-adafruit-feather-rp2040-for-seamless-ble-applications-part-5-two-way-5nf</guid>
      <description>&lt;p&gt;In the earlier parts of this series, we combined the Adafruit Feather RP2040 with the BleuIO USB dongle to build different BLE applications: setting up the RP2040 as a USB host, reading sensor data, advertising measurements and handling secure connections.&lt;/p&gt;

&lt;p&gt;In this &lt;strong&gt;Part 5&lt;/strong&gt;, we take the next step and create a simple two-way communication setup. Instead of only broadcasting data, we let a Python script running on your computer talk to the BleuIO dongle connected to the Feather RP2040 and control its LED in real time. At the same time, the Feather responds over the Serial Port Service (SPS), echoing messages back so you can see exactly what was sent on both sides.&lt;/p&gt;

&lt;p&gt;This project is a good starting point if you want to remotely control devices, test custom BLE command protocols or build interactive demos using BleuIO and RP2040.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Project Does
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Arduino project on Adafruit Feather RP2040
&lt;/h3&gt;

&lt;p&gt;On the hardware side, the Adafruit Feather RP2040 is configured as a USB host for the BleuIO dongle, using the same TinyUSB and Pico PIO USB approach as in &lt;a href="https://www.bleuio.com/blog/integrating-bleuio-with-adafruit-feather-rp2040-for-seamless-ble-applications/" rel="noopener noreferrer"&gt;&lt;strong&gt;Part 1 of the series&lt;/strong&gt;&lt;/a&gt;. When the board starts, it initializes the USB host stack, detects the BleuIO dongle and sends a short sequence of AT commands. These commands disable echo, ask the dongle for its own MAC address, set a friendly advertising name (&lt;code&gt;BleuIO Arduino Example&lt;/code&gt;) and start BLE advertising. After that, the sketch simply listens for BLE connection events and SPS messages. Depending on what text message it receives over SPS, it either echoes the message back or sends a command to change the LED behaviour on the dongle.&lt;/p&gt;

&lt;h3&gt;
  
  
  Python script on the computer
&lt;/h3&gt;

&lt;p&gt;On the computer, a Python script acts as the BLE central. It uses the MAC address printed by the Feather’s serial output to connect to the advertising BleuIO dongle. Once connected, it sends text commands over SPS such as &lt;code&gt;**ALERT**&lt;/code&gt;, &lt;code&gt;**NORMAL**&lt;/code&gt; or &lt;code&gt;**OFF**&lt;/code&gt;, and reads back whatever the Feather sends in response. When the Python script sends one of these special words, the Feather generates BLEU AT commands to control the dongle’s LED; for any other text, it just echoes the message. This creates a complete round-trip: you type in Python, the message travels over BLE to the RP2040 and BleuIO, and a response comes back the same way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Hardware&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://www.adafruit.com/product/5723" rel="noopener noreferrer"&gt;Adafruit Feather RP2040 board&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="http://bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO Pro – Bluetooth Low Energy USB dongle&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  USB cable for the Feather&lt;/li&gt;
&lt;li&gt;  USB-A port or hub for the BleuIO dongle&lt;/li&gt;
&lt;li&gt;  Computer running Windows, macOS or Linux&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Software&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://www.arduino.cc/en/software" rel="noopener noreferrer"&gt;Arduino IDE with RP2040 board support installed&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  Adafruit TinyUSB Library&lt;/li&gt;
&lt;li&gt;  Pico PIO USB Library&lt;/li&gt;
&lt;li&gt;  ArduinoJson library&lt;/li&gt;
&lt;li&gt;  Python 3.x and the Python project that connects to BleuIO over SPS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you already followed &lt;a href="https://www.bleuio.com/blog/integrating-bleuio-with-adafruit-feather-rp2040-for-seamless-ble-applications/" rel="noopener noreferrer"&gt;Part 1,&lt;/a&gt; your RP2040 USB host environment and board configuration should be ready to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Source Code on GitHub
&lt;/h2&gt;

&lt;p&gt;You can find the complete source code for this project — both the Arduino sketch and the Python script — in our public GitHub repository: &lt;strong&gt;bleuio_arduino_message_transfer_example&lt;/strong&gt;. Visit the repository at:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio_arduino_message_transfer_example" rel="noopener noreferrer"&gt;https://github.com/smart-sensor-devices-ab/bleuio_arduino_message_transfer_example&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feel free to clone or download the repo to get started quickly. All necessary files — including the &lt;code&gt;.ino&lt;/code&gt;, helper headers, and the Python script — are included, so you can replicate the example or adapt it for your own project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap: Preparing the Feather RP2040 as a USB Host
&lt;/h2&gt;

&lt;p&gt;To quickly recap the setup from the earlier article: you install the Raspberry Pi RP2040 board package in the Arduino IDE, select the Feather RP2040 board, and install the Adafruit TinyUSB and Pico PIO USB libraries. You then make sure the CPU speed is set to 120 MHz or 240 MHz, since Pico PIO USB requires a clock that is a multiple of 120 MHz.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uploading the Arduino Sketch
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Open the &lt;code&gt;bleuio_arduino_connect_example.ino&lt;/code&gt; and &lt;code&gt;usbh_helper.h&lt;/code&gt; in the same Arduino sketch folder.&lt;/li&gt;
&lt;li&gt; Select &lt;strong&gt;Adafruit Feather RP2040&lt;/strong&gt; (or your RP2040 board) under &lt;em&gt;Tools → Board&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkx3w98gcnsj4euvqc430.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkx3w98gcnsj4euvqc430.png" width="800" height="718"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Choose the correct COM port for the Feather.&lt;/li&gt;
&lt;li&gt; Click &lt;strong&gt;Upload&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmqzfbcmldeunuyykxepz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmqzfbcmldeunuyykxepz.png" width="396" height="49"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After upload:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Open &lt;strong&gt;Serial Monitor&lt;/strong&gt; at &lt;strong&gt;9600 baud&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; You should see something like:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connect test v1.0
Core1 setup to run TinyUSB host with pio-usb
SerialHost is connected to a new CDC device. Idx: 0

BleuIO response:
{"own_mac_addr":"xx:xx:xx:xx:xx:xx"}
----
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt; Every 10 seconds (based on &lt;code&gt;ALIVE_TIME&lt;/code&gt;) you’ll see an update:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;H:M:S - 0:0:10
own_mac_addr: xx:xx:xx:xx:xx:xx
Not connected!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Initially it will say &lt;strong&gt;Not connected!&lt;/strong&gt; because no BLE central is connected yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Python Script (BLE Central)
&lt;/h2&gt;

&lt;p&gt;The Python script acts as a &lt;strong&gt;BLE central&lt;/strong&gt; that connects to the advertising BleuIO dongle and uses the &lt;strong&gt;Serial Port Service (SPS)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A typical flow in the Python script is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Read the &lt;strong&gt;MAC address&lt;/strong&gt; printed by the Arduino Serial Monitor (&lt;code&gt;own_mac_addr&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt; Use the BleuIO Python library (or BLE stack) to connect to that address.&lt;/li&gt;
&lt;li&gt; Once connected, send plain text messages over SPS:

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;"ALERT"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;"NORMAL"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;"OFF"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  Or any other text.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On the Python side you’ll see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Connection success message.&lt;/li&gt;
&lt;li&gt;  Any SPS response sent from the RP2040 (e.g. &lt;code&gt;[RP2040] Alert command Received: [...]&lt;/code&gt; or &lt;code&gt;[RP2040] Echo: ...&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the Arduino Serial Monitor you’ll see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connected!
SPS Received!
BleuIO response:
{"type":"SPS","evt":{"len":5,"ascii":"ALERT"}}
----
Sending command: AT+SPSSEND=[RP2040] Alert command Received: [ALERT]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the LED on the BleuIO dongle will react according to the command:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;ALERT&lt;/code&gt; → Blink pattern (&lt;code&gt;AT+LED=T=100=100&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;NORMAL&lt;/code&gt; → Toggle LED (&lt;code&gt;AT+LED=T&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;OFF&lt;/code&gt; → Turn LED off (&lt;code&gt;AT+LED=0&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;  Any other message → Just an echo, no LED change.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where to Go Next
&lt;/h2&gt;

&lt;p&gt;This example completes the journey from simple advertising to full two-way communication between a computer application and a BleuIO dongle hosted by an Adafruit Feather RP2040. With this pattern in place, you can replace the LED commands with your own device protocol, combine it with the sensor examples from Part 2 and Part 4, or feed the exchanged messages into larger systems for logging, dashboards or control logic. Because the communication relies on the standard Serial Port Service and BleuIO AT commands, the same structure can be reused for many other projects where a PC, an embedded board and a BLE device need to work together.&lt;/p&gt;

</description>
      <category>arduino</category>
      <category>bluetooth</category>
      <category>bleuio</category>
      <category>adafruit</category>
    </item>
    <item>
      <title>How AI Makes BLE Development Even Easier with BleuIO</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Tue, 02 Dec 2025 10:04:11 +0000</pubDate>
      <link>https://dev.to/bleuiot/how-ai-makes-ble-development-even-easier-with-bleuio-40pa</link>
      <guid>https://dev.to/bleuiot/how-ai-makes-ble-development-even-easier-with-bleuio-40pa</guid>
      <description>&lt;p&gt;Bluetooth Low Energy (BLE) has become a key technology in modern wireless applications—from IoT devices and sensors to wearables, smart tools, and more. While BLE development can traditionally require time, experience, and familiarity with complex protocols, &lt;strong&gt;&lt;a href="https://www.bleuio.com/" rel="noopener noreferrer"&gt;BleuIO&lt;/a&gt;&lt;/strong&gt; dramatically simplifies the process.&lt;/p&gt;

&lt;p&gt;BleuIO is a powerful USB BLE dongle designed to help developers of all levels build BLE applications quickly and efficiently. With straightforward AT commands, intuitive documentation, and cross-platform flexibility, it allows users to prototype and develop BLE solutions without the usual learning curve.&lt;/p&gt;

&lt;p&gt;But now, with the rapid growth of AI tools such as &lt;strong&gt;ChatGPT&lt;/strong&gt; and &lt;strong&gt;Gemini&lt;/strong&gt;, the development workflow becomes even smoother. AI can help generate ready-to-run scripts, automate coding tasks, and speed up BLE experiments—making the combination of &lt;strong&gt;BleuIO + AI&lt;/strong&gt; incredibly valuable for developers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Challenges in BLE Development
&lt;/h2&gt;

&lt;p&gt;Developing Bluetooth Low Energy applications often requires a solid understanding of BLE protocols and command structures, which can be intimidating for beginners. Developers must also write code that interfaces correctly with hardware such as dongles or embedded devices, and this process can involve repetitive boilerplate code—especially when handling tasks like scanning, connecting, and transferring data. Another common challenge is ensuring that code works consistently across different languages and platforms. These factors can slow down development and create barriers for those who simply want to prototype or test BLE functionality quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  How BleuIO and AI Solve These Problems
&lt;/h2&gt;

&lt;p&gt;BleuIO addresses many of these challenges by offering straightforward AT commands that simplify common BLE operations. When paired with modern AI tools, the development process becomes even more efficient. AI systems can read the &lt;a href="https://www.bleuio.com/getting_started/docs/commands/" rel="noopener noreferrer"&gt;BleuIO AT Command List&lt;/a&gt; and instantly generate complete scripts that integrate these commands correctly, significantly speeding up prototyping. This eliminates the need for manually writing repetitive code, allowing developers to focus on their application rather than the setup. Because BleuIO works seamlessly with Python, JavaScript, C#, Node.js, and many other environments, developers can choose the language they prefer. Even newcomers can get started easily, as AI-generated scripts help bridge any knowledge gaps and provide a smooth entry point into BLE development.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example: Using ChatGPT and Gemini to Generate a BLE Scan Script
&lt;/h2&gt;

&lt;p&gt;To demonstrate how effectively BleuIO and AI work together, we created a simple test scenario. We began by downloading the BleuIO AT Command List PDF from the Getting Started guide and then asked both ChatGPT and Gemini to generate a Python script that communicates with the &lt;a href="https://www.bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO BLE USB dongle&lt;/a&gt;. The script needed to use the correct AT commands, include the appropriate COM port, and perform a scan for nearby BLE devices lasting five seconds. After generating the scripts, we ran them to compare the output produced by the two AI tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Video Demonstration
&lt;/h2&gt;

&lt;p&gt;You can watch the full demonstration below, where we walk through the entire process—from downloading the command list to generating and testing the scripts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=8wegP7O5Xls" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=8wegP7O5Xls&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This example demonstrates just how powerful the combination of &lt;strong&gt;BleuIO&lt;/strong&gt; and modern &lt;strong&gt;AI tools&lt;/strong&gt; can be. By letting AI generate boilerplate code and BLE scripts, you can focus on building features, testing ideas, or integrating wireless communication into your products.&lt;/p&gt;

&lt;p&gt;BleuIO already makes BLE development easy—but with AI, it becomes even more efficient, accessible, and developer-friendly.&lt;/p&gt;

</description>
      <category>bleuio</category>
      <category>bluetoothlowenergy</category>
      <category>ai</category>
      <category>chatgpt</category>
    </item>
    <item>
      <title>Ambient-Adaptive Particulate Monitor (PM1.0 / PM2.5 / PM10) with BleuIO &amp; HibouAir</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Fri, 31 Oct 2025 10:31:40 +0000</pubDate>
      <link>https://dev.to/bleuiot/ambient-adaptive-particulate-monitor-pm10-pm25-pm10-with-bleuio-hibouair-lji</link>
      <guid>https://dev.to/bleuiot/ambient-adaptive-particulate-monitor-pm10-pm25-pm10-with-bleuio-hibouair-lji</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyl008ly385lb76exh3za.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyl008ly385lb76exh3za.webp" alt="Ambient-Adaptive Particulate Monitor (PM1.0 / PM2.5 / PM10) with BleuIO &amp;amp; HibouAir" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Outdoor air quality is a major focus in Europe in 2025, with tighter standards placing greater emphasis on fine particulate matter—especially PM2.5. Elevated PM levels are linked to asthma, reduced cognitive performance, and increased cardiovascular risk, making reliable monitoring essential. This project demonstrates a simple, browser-based way to visualize PM1.0, PM2.5, and PM10 in real time—supporting better ventilation decisions and aligning with &lt;a href="https://smartsensordevices.com/outdoor-air-quality-in-2025-navigating-new-eu-regulations-and-monitoring-solutions/" rel="noopener noreferrer"&gt;&lt;strong&gt;evolving EU air-quality&lt;/strong&gt;&lt;/a&gt; expectations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you’ll build
&lt;/h2&gt;

&lt;p&gt;A single &lt;strong&gt;HTML file&lt;/strong&gt; styled with &lt;strong&gt;Tailwind CSS&lt;/strong&gt; that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Puts &lt;strong&gt;BleuIO&lt;/strong&gt; in a central scanning role&lt;/li&gt;
&lt;li&gt;  Periodically runs a targeted scan for your HibouAir &lt;strong&gt;Board ID&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  Decodes &lt;strong&gt;PM1.0 / PM2.5 / PM10&lt;/strong&gt; from the manufacturer data inside BLE advertisements&lt;/li&gt;
&lt;li&gt;  Maps the values to three horizontal bars (default display windows: PM1.0/PM2.5 → &lt;strong&gt;0–150 µg/m³&lt;/strong&gt;, PM10 → &lt;strong&gt;0–200 µg/m³&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;  Shows a &lt;strong&gt;high particulate&lt;/strong&gt; banner when any value exceeds your thresholds&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Source code:&lt;/strong&gt; &lt;code&gt;[https://github.com/smart-sensor-devices-ab/pm-monitor-bleuio](https://github.com/smart-sensor-devices-ab/pm-monitor-bleuio)&lt;/code&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;code&gt;[https://smart-sensor-devices-ab.github.io/pm-monitor-bleuio/](https://smart-sensor-devices-ab.github.io/pm-monitor-bleuio/)&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardware &amp;amp; software
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://www.bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;&lt;strong&gt;BleuIO&lt;/strong&gt; USB BLE dongle&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.hibouair.com/specifications-air-quality-monitor-pm-sensor.php" rel="noopener noreferrer"&gt;&lt;strong&gt;HibouAir&lt;/strong&gt; air quality monitor with particle sensor&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;HibouAir broadcast short advertisement packets that includes real-time air quality data. We can read them without pairing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scan cadence.&lt;/strong&gt; The dongle sends:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;AT+CENTRAL&lt;/code&gt; &lt;strong&gt;once&lt;/strong&gt; to enter scanning mode&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;AT+FINDSCANDATA=&amp;lt;BOARD_ID&amp;gt;=3&lt;/code&gt; every cycle to run a &lt;strong&gt;3-second targeted scan&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  It reads lines until BleuIO prints &lt;strong&gt;&lt;code&gt;SCAN COMPLETE&lt;/code&gt;&lt;/strong&gt;, then waits and repeats&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Decoding.&lt;/strong&gt; HibouAir advertises a compact environmental frame beginning with the marker &lt;code&gt;5B 07 05&lt;/code&gt;. PM values are &lt;strong&gt;16-bit little-endian&lt;/strong&gt; fields. In this build we anchor to the marker and read:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;PM1.0&lt;/strong&gt; (raw ÷ 10 → µg/m³)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;PM2.5&lt;/strong&gt; (raw ÷ 10 → µg/m³)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;PM10&lt;/strong&gt; (raw ÷ 10 → µg/m³)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;UI behavior.&lt;/strong&gt; Each metric drives a bar that fills left-to-right as the value rises within its display window. Thresholds are configurable (defaults: PM1.0 &lt;strong&gt;1&lt;/strong&gt;, PM2.5 &lt;strong&gt;2&lt;/strong&gt;, PM10 &lt;strong&gt;5&lt;/strong&gt; µg/m³). If any metric is at or above its threshold, the page shows &lt;strong&gt;“High particulate levels detected.”&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Customize &amp;amp; extend
&lt;/h2&gt;

&lt;p&gt;You can tailor this monitor to your space and workflow in several practical ways. If you anticipate larger spikes, widen the display windows—for example, expand PM2.5 to 0–200 µg/m³—to keep the bar responsive at higher ranges. For lightweight analytics, append readings to a CSV file or store them in IndexedDB to explore trends over hours or days. If you’re tracking multiple HibouAir units, build a wallboard that scans a list of Board IDs and renders compact tiles for each sensor in a single view. To act on thresholds, add automation hooks that trigger a webhook or drive a fan/relay from a companion script when levels rise. Finally, pair this particulate display with your existing CO₂ or Noise monitors to create a more complete picture of indoor conditions and ventilation effectiveness.&lt;/p&gt;

&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fufsqvpt8ou89vinhlw3m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fufsqvpt8ou89vinhlw3m.png" width="800" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe4jjaeuwj0cdx6ynlmj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe4jjaeuwj0cdx6ynlmj.png" width="800" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=WUZL5VnDtfE" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=WUZL5VnDtfE&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the video , the session starts at &lt;strong&gt;0.0 µg/m³&lt;/strong&gt; across PM1.0/PM2.5/PM10. To demonstrate responsiveness, we briefly spray &lt;strong&gt;aerosol&lt;/strong&gt; near the HibouAir device. Within seconds, the bars respond and the page displays &lt;strong&gt;“High particulate levels detected.”&lt;/strong&gt; After stopping the aerosol and allowing air to clear, values &lt;strong&gt;decay back down&lt;/strong&gt;, the bars recede, and the banner disappears. This sequence illustrates typical behavior you’ll see during quick particulate events (e.g., cleaning sprays, dust disturbances, smoke from cooking) and their recovery.&lt;/p&gt;

&lt;p&gt;This project turns HibouAir’s BLE adverts into a clear view of PM1.0, PM2.5, and PM10 using a BleuIO dongle. In minutes, you get live bars, thresholds, and a simple alert that makes particulate spikes obvious. It’s easy to tune—adjust display windows, tweak thresholds, and adapt the layout for different rooms. As EU air-quality expectations tighten, this lightweight monitor helps you spot issues and validate ventilation quickly. From here, you can add data export, multi-device dashboards, or pair it with your CO2 monitor for a fuller picture.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bleuio</category>
      <category>hibouair</category>
      <category>airqualitymonitor</category>
    </item>
    <item>
      <title>Real-Time BLE Air Quality Monitoring with BleuIO and Adafruit IO</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Mon, 22 Sep 2025 09:44:13 +0000</pubDate>
      <link>https://dev.to/bleuiot/real-time-ble-air-quality-monitoring-with-bleuio-and-adafruit-io-4noo</link>
      <guid>https://dev.to/bleuiot/real-time-ble-air-quality-monitoring-with-bleuio-and-adafruit-io-4noo</guid>
      <description>&lt;p&gt;This project shows how to turn a BleuIO USB dongle into a tiny gateway that streams live &lt;strong&gt;air-quality data&lt;/strong&gt; from a HibouAir sensor straight to &lt;strong&gt;Adafruit IO&lt;/strong&gt;. The script listens for Bluetooth Low Energy (BLE) advertising packets, decodes CO2, temperature, and humidity, and posts fresh readings to your Adafruit IO feeds every few seconds. The result is a clean, shareable dashboard that updates in real time—perfect for demos, labs, offices, classrooms, and proofs of concept.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Adafruit IO—and why pair it with BleuIO?
&lt;/h2&gt;

&lt;p&gt;Adafruit IO is a cloud platform for makers and developers that lets you collect, visualize, and route device data using a simple &lt;strong&gt;REST API&lt;/strong&gt; or &lt;strong&gt;MQTT&lt;/strong&gt;. You don’t need any Adafruit hardware; if you can make an HTTPS request, you can send data. BleuIO fits in beautifully here: the dongle handles the &lt;strong&gt;BLE side&lt;/strong&gt;—scanning and parsing sensor frames—while a short Python script formats those values and pushes them to Adafruit IO. In practice that means you can take &lt;strong&gt;any BLE-advertising sensor&lt;/strong&gt;, translate its packets into numbers, and land them on an IoT-friendly dashboard without servers or containers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;To complete this project, you will need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://www.bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;BleuIO BLE USB Dongle&lt;/a&gt;&lt;/strong&gt; – acts as the BLE central device to capture advertising packets.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;&lt;a href="https://www.hibouair.com/specifications-air-quality-monitor-co2-sensor.php" rel="noopener noreferrer"&gt;HibouAir Air quality monitor&lt;/a&gt;&lt;/strong&gt; – broadcasts environmental data such as CO2, temperature, and humidity.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Python libraries&lt;/strong&gt; – install them with: &lt;code&gt;pip install pyserial requests&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Adafruit IO account&lt;/strong&gt; – free to sign up at &lt;a href="https://io.adafruit.com/" rel="noopener noreferrer"&gt;io.adafruit.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Adafruit IO Key&lt;/strong&gt; – available under your account’s “My Key” page for authentication.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;When you start the script, it opens the BleuIO serial port and switches the dongle into &lt;strong&gt;central role&lt;/strong&gt; the very first time the program runs. From then on it repeatedly performs a short BLE scan that filters for HibouAir advertising frames. The scanner always picks the &lt;strong&gt;latest&lt;/strong&gt; matching packet and decodes the fields we care about: CO2 (ppm), temperature (°C), and humidity (%rH). The script then posts each value to its own Adafruit IO feed over HTTPS. Because Adafruit IO is designed for live IoT data, your dashboard widgets update as soon as new points arrive. The loop cadence is configurable (10 seconds by default), which keeps you comfortably under Adafruit IO’s free-tier request limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The code (key points)
&lt;/h2&gt;

&lt;p&gt;The script is intentionally small and readable. It opens the serial device (for example &lt;code&gt;/dev/cu.usbmodemXXXX&lt;/code&gt; on macOS or &lt;code&gt;COM7&lt;/code&gt; on Windows), sends the BleuIO commands to scan for a few seconds, and parses the returned “Device Data [ADV]” lines.&lt;/p&gt;

&lt;p&gt;A compact decoder extracts CO2, temperature, and humidity from the HibouAir manufacturer data, including the byte order and scaling.&lt;/p&gt;

&lt;p&gt;To make the setup painless, credentials are read from variables (&lt;code&gt;AIO_USER&lt;/code&gt;, &lt;code&gt;AIO_KEY&lt;/code&gt;) and feed names default to &lt;code&gt;co2&lt;/code&gt;, &lt;code&gt;temperature&lt;/code&gt;, and &lt;code&gt;humidity&lt;/code&gt;. Each value is sent to the REST endpoint &lt;code&gt;/api/v2/{username}/feeds/{feed_key}/data&lt;/code&gt; with a simple JSON body &lt;code&gt;{"value": &amp;lt;number&amp;gt;}&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The script includes gentle sanity checks (for example, temperature range and humidity bounds) to ignore any malformed frames, and it prints a concise log line each time it pushes fresh data.&lt;/p&gt;

&lt;p&gt;Here is the &lt;strong&gt;&lt;a href="https://github.com/smart-sensor-devices-ab/bleuio-adafruitio" rel="noopener noreferrer"&gt;GitHub link&lt;/a&gt;&lt;/strong&gt; with the full source so you can clone and run it as-is or adapt it to other sensors.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to run the code
&lt;/h2&gt;

&lt;p&gt;Before running, set your serial port and Adafruit IO credentials.&lt;/p&gt;

&lt;p&gt;On macOS you can list ports with &lt;code&gt;ls /dev/cu.usbmodem*&lt;/code&gt;;&lt;/p&gt;

&lt;p&gt;on Windows use Device Manager to find the &lt;strong&gt;COM&lt;/strong&gt; number. Update username and AIO key information, then run the script.&lt;br&gt;&lt;br&gt;
The program will put BleuIO into central mode on first launch and, every cycle, will scan, decode, and push CO2, temperature, and humidity to the three feeds.&lt;br&gt;&lt;br&gt;
If you see an HTTP 401 error, double-check the AIO key; a 404 usually means a feed name typo. If the script can’t open the serial port, confirm the path and that no other program is holding it open.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating Adafruit IO feeds, key, and dashboard
&lt;/h2&gt;

&lt;p&gt;Log in to Adafruit IO and create three feeds named &lt;code&gt;co2&lt;/code&gt;, &lt;code&gt;temperature&lt;/code&gt;, and &lt;code&gt;humidity&lt;/code&gt;. Your &lt;strong&gt;AIO Key&lt;/strong&gt; is available under your account’s “My Key” page; copy it and keep it private. With feeds in place, open the &lt;strong&gt;Dashboards&lt;/strong&gt; section and create a new dashboard for this project (for example, “HibouAir Live”). Add a few blocks: a &lt;strong&gt;gauge&lt;/strong&gt; or line chart for CO₂ (with a range that makes sense for your space), another &lt;strong&gt;gauge&lt;/strong&gt; or slide for temperature, and a slide or &lt;strong&gt;line chart&lt;/strong&gt; for humidity so you can see the trend over time. Each block points to its corresponding feed. As the script posts to those feeds, the blocks will animate and refresh automatically. You can reorder blocks, tweak colors and ranges, and share a read-only link if you want others to watch along.&lt;/p&gt;

&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;

&lt;p&gt;Once everything is connected, the dashboard shows a live CO2 number in gauge an line chart, an updating temperature value, and a humidity box that advances with each new reading. The values move in near real time as the script cycles, and any spikes or changes in air quality appear immediately.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7jkds0phacxnwjptl1j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7jkds0phacxnwjptl1j.png" width="800" height="292"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use cases
&lt;/h2&gt;

&lt;p&gt;Real-time air-quality dashboards are useful in far more places than a lab bench. Facility manager can watch CO2 levels across meeting rooms to optimize ventilation; schools and libraries can surface temperature and humidity alongside occupancy schedules; small manufacturers can keep an eye on comfort and safety in production spaces; and hobbyists can monitor their home offices or studios. Because the pipeline is “BLE sensor → BleuIO → HTTPS → Adafruit IO,” you can swap HibouAir for other BLE advertisers and reuse the same approach to visualize anything from soil moisture to ambient light.&lt;/p&gt;

&lt;p&gt;This project highlights how quickly you can go from &lt;strong&gt;BLE broadcast to live cloud dashboard&lt;/strong&gt; with BleuIO and Adafruit IO. There’s no server to maintain, no container to deploy—just a tiny USB dongle, an &lt;a href="https://www.hibouair.com/air-quality-monitor-hibouair-duo.php" rel="noopener noreferrer"&gt;air quality monitoring device&lt;/a&gt; like HibouAir, a short Python script, and a few clicks on the Adafruit IO site. The result is a shareable, real-time view of your environment that’s easy to extend, brand, and automate.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bleuio</category>
      <category>airqualitymonitoring</category>
      <category>adafruit</category>
    </item>
    <item>
      <title>Automating BLE Development with BleuIO: Run Without a Host Computer</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Wed, 17 Sep 2025 12:29:17 +0000</pubDate>
      <link>https://dev.to/bleuiot/automating-ble-development-with-bleuio-run-without-a-host-computer-3nb5</link>
      <guid>https://dev.to/bleuiot/automating-ble-development-with-bleuio-run-without-a-host-computer-3nb5</guid>
      <description>&lt;p&gt;When working with Bluetooth Low Energy (BLE) devices, most developers expect to rely on a computer or microcontroller to send commands. &lt;strong&gt;BleuIO&lt;/strong&gt; changes that expectation. More than a &lt;a href="https://bleuio.com/bluetooth-low-energy-usb-ssd025.php" rel="noopener noreferrer"&gt;USB dongle, BleuIO&lt;/a&gt; is now capable of running &lt;strong&gt;standalone BLE automation&lt;/strong&gt; — no host computer required.&lt;/p&gt;

&lt;p&gt;This means you can plug BleuIO into &lt;strong&gt;any power source&lt;/strong&gt; (USB adapter, hub, or power bank) and let it execute predefined tasks completely on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Standalone Automation Matters
&lt;/h2&gt;

&lt;p&gt;Traditional BLE prototyping involves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Writing custom firmware
&lt;/li&gt;
&lt;li&gt;Using a host PC or MCU to send AT commands
&lt;/li&gt;
&lt;li&gt;Managing drivers, code, and extra hardware
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With BleuIO, you can &lt;strong&gt;store AT commands inside the dongle&lt;/strong&gt; itself. Once powered, the device automatically runs those commands in sequence or in a loop. No drivers. No host system. Just power → BLE.&lt;/p&gt;

&lt;p&gt;This reduces development overhead, speeds up prototyping, and makes deployment more reliable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Example: A Beacon That Starts on Power-Up
&lt;/h2&gt;

&lt;p&gt;Want to turn your BleuIO into a beacon without writing a single line of host code? Just set the auto execution list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AT+AUTOEXEC=AT+ADVSTART
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, every time you power the dongle, it will begin advertising as a BLE beacon automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example: A Loop That Changes Beacon Data
&lt;/h2&gt;

&lt;p&gt;You can also create &lt;strong&gt;dynamic advertising&lt;/strong&gt; by alternating the beacon name every 10 seconds.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AT+AUTOEXECLOOP=START
AT+AUTOEXEC=AT+ADVDATA=04:09:42:6C:65:75:49:4F   // Name: BleuIO
AT+AUTOEXEC=AT+ADVSTART
AT+AUTOEXEC=AT+WAIT=10
AT+AUTOEXEC=AT+ADVDATA=04:09:43:41:54            // Name: CAT
AT+AUTOEXEC=AT+ADVSTART
AT+AUTOEXECLOOP=END
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now BleuIO will broadcast as “BleuIO,” switch to “CAT” after 10 seconds, and repeat endlessly — all without a host device.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Can Build With This
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Smart beacons&lt;/strong&gt; that rotate data for marketing or tracking&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sensor broadcasting&lt;/strong&gt; devices that push data to nearby scanners&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Device-to-device automation&lt;/strong&gt; where dongles communicate directly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Prototypes&lt;/strong&gt; that don’t need PCs or microcontrollers to run&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Learn More
&lt;/h2&gt;

&lt;p&gt;If you’re new to BleuIO, check out the &lt;a href="https://www.bleuio.com/getting_started/" rel="noopener noreferrer"&gt;Getting Started guide&lt;/a&gt; and &lt;a href="https://www.bleuio.com/getting_started/docs/commands/" rel="noopener noreferrer"&gt;AT command reference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;BleuIO is more than a dongle — it’s your &lt;strong&gt;plug-and-play BLE automation engine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Ready to cut out the middleman? Try running BleuIO without a host and see how much simpler BLE development can be.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bluetooth</category>
      <category>bleuio</category>
    </item>
    <item>
      <title>Understanding How BLE Devices Connect (and How to Simplify It with BleuIO)</title>
      <dc:creator>Bleuio tech</dc:creator>
      <pubDate>Thu, 11 Sep 2025 12:12:31 +0000</pubDate>
      <link>https://dev.to/bleuiot/understanding-how-ble-devices-connect-and-how-to-simplify-it-with-bleuio-136j</link>
      <guid>https://dev.to/bleuiot/understanding-how-ble-devices-connect-and-how-to-simplify-it-with-bleuio-136j</guid>
      <description>&lt;p&gt;Bluetooth Low Energy (BLE) has become one of the most widely adopted wireless technologies for IoT and embedded systems. Whether it’s fitness trackers, smart lighting, or industrial sensors, BLE devices connect seamlessly to phones, gateways, and computers. But under the hood, how does this connection process really work? And how can developers make it easier to test and prototype?&lt;/p&gt;

&lt;h2&gt;
  
  
  How BLE Connections Work
&lt;/h2&gt;

&lt;p&gt;The BLE protocol is designed around a &lt;strong&gt;central–peripheral model&lt;/strong&gt;. A peripheral (such as a sensor or beacon) broadcasts advertisement packets. These packets announce that the device is available and can contain details like its name, supported services, or other custom data.&lt;/p&gt;

&lt;p&gt;On the other side, a central device (like a smartphone, PC, or USB dongle) listens for these advertisements by scanning the radio environment. When it detects a device of interest, the central can request a connection. Once established, the two devices exchange data using &lt;em&gt;services&lt;/em&gt; and &lt;em&gt;characteristics&lt;/em&gt;. This structured approach ensures BLE stays flexible enough to support anything from simple temperature sensors to secure data transfer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why BLE Can Be Tricky for Developers
&lt;/h2&gt;

&lt;p&gt;Although the connection model sounds simple, the implementation is often challenging. Each operating system provides its own Bluetooth API, and working with these APIs can require deep knowledge of the Bluetooth stack. Developers need to manage device discovery, connection, bonding, and data exchange, all while ensuring security and cross-platform compatibility. &lt;/p&gt;

&lt;p&gt;This complexity makes rapid prototyping harder, especially for developers who want to test ideas quickly or build cross-platform apps without rewriting code for every environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  BleuIO: A Developer-Friendly Shortcut
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.bleuio.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;BleuIO&lt;/strong&gt;&lt;/a&gt; is a Bluetooth Low Energy USB dongle that removes much of this complexity. Instead of diving into low-level code, you can use simple AT commands to handle BLE connections. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scan for devices with &lt;a href="https://www.bleuio.com/getting_started/docs/commands/" rel="noopener noreferrer"&gt;&lt;code&gt;AT+GAPSCAN&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Connect to a target device with &lt;code&gt;AT+GAPCONNECT&lt;/code&gt; followed by its address
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once connected, you can easily exchange data, test different services, or even automate workflows using BleuIO’s &lt;a href="https://www.bleuio.com/getting_started/docs/python_library/" rel="noopener noreferrer"&gt;Python&lt;/a&gt; and &lt;a href="https://www.bleuio.com/getting_started/docs/javascript_library/" rel="noopener noreferrer"&gt;JavaScript&lt;/a&gt; libraries.&lt;/p&gt;

&lt;p&gt;This means you can focus on building your application logic while letting BleuIO handle the BLE details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hands-On Examples
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.bleuio.com/blog/" rel="noopener noreferrer"&gt;BleuIO blog&lt;/a&gt; features practical tutorials to help developers experiment with BLE connections. A few examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.bleuio.com/blog/building-a-ble-application-with-reactjs-and-bleuio/" rel="noopener noreferrer"&gt;Building a BLE application with ReactJS and BleuIO&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.bleuio.com/blog/mobile-ble-development-connect-bleuio-to-your-mobile-device/" rel="noopener noreferrer"&gt;Developing BLE-enabled mobile applications&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.bleuio.com/blog/integrating-bleuio-with-adafruit-feather-rp2040-for-seamless-ble-applications-part-3-secure-connection/" rel="noopener noreferrer"&gt;Integrating with Adafruit Feather RP2040 for secure BLE communication&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each tutorial shows how quickly you can go from scanning to connecting and exchanging data, without worrying about OS-level complexities.&lt;/p&gt;

&lt;p&gt;Understanding how BLE devices connect is key for anyone working in IoT, embedded systems, or mobile development. But instead of spending weeks learning the internals of Bluetooth stacks, you can use tools like BleuIO to speed up development. With simple AT commands like &lt;code&gt;AT+GAPSCAN&lt;/code&gt; and &lt;code&gt;AT+GAPCONNECT&lt;/code&gt;, you can connect devices in seconds and focus on building features that matter.&lt;/p&gt;

</description>
      <category>bluetoothlowenergy</category>
      <category>bleuio</category>
      <category>bluetooth</category>
    </item>
  </channel>
</rss>
