Getting Started
Introduction
You can either use python or Google's chrome.serial web API to run example script that we have prepared here.
Python
Method 1 :
Bleuio Python library is available on PyPI (the Python Package Index).
Before starting to install our library, make sure your you have the latest Python installed on your system.
If you have never installed a library from pypi, you must install the pip tool enabling you to download and install a PyPI package. There are several methods which are described on this page. Now Install the library by running
pip install bleuio
ip automatically downloads and installs the most recent library on your system in the correct directory. To check that the installation went well, you can launch a Python interpreter and run the following lines:
from bleuio_lib.bleuio_funcs import BleuIo
my_dongle = BleuIo()
my_dongle.start_daemon()
print(my_dongle.ati())
The documentation explains how to access AT commands using our library.
https://pypi.org/project/bleuio/
Method 2 :
You can also use our example scripts. To do that, you will need to install the module pySerial. The easiest way to install it is through pip (which you should already have after installing Python) by running:
Python2:
pip install pyserial
Python3:
python3 -m pip install pyserial
Now you can download the script you want to use, from our GitHub page. Then open up the command prompt inside the directory where the script you want to run is. Then run:
python scriptname.py
NOTE: You will need to manually change the COM port in the script to which ever your dongle uses. The number may vary from machine to machine.
Follow the video tutorial to learn how to get started using the BleuIO.
Google's chrome.serial web API
Requirements: Chrome 78 or later and you need to enable the #enable-experimental-web-platform-features flag in chrome://flags
Open chrome://flags/#enable-experimental-web-platform-features in Google Chrome browser.
Bleuio Javascript library is available on npm(Node Package Manager). You can use chrome.serial to create web apps that can access the BleuIO AT commands easily using this library.
Install the library by running
npm i bleuio
npm automatically downloads and installs the most recent library on your system in the correct directory. To check that the installation went well, follow the simple readme file from
https://www.npmjs.com/package/bleuio
Follow this video if you find any difficulties.
Alternatively you can use our example script from our GitHub page
More info about the chrome.serial:
chrome.serial: https://developer.chrome.com/apps/serial
Serial API: https://reillyeon.github.io/serial