To get started with Arancino Library you can download the latest version from the repository arancino-library
within the smartme.IO Repository Management Site or directly from Arduino IDE or Visual Studio with Platform.IO.
Open the Arduino IDE, unzip the Arancino Library and import the unzipped folder (Sketch → Include Library → Add .zip Library...). The library will appear under Sketch → Include Library menu at the end, under the Contributed section. Examples will be under File → Examples → Examples of Custom Libraries.
Open the Arduino IDE and go to Sketch → Include Library → Manage Libraries, the Arduino Library Manager window will be shown. Using the text box, type Arancino; finally selecte the Arancino Library item within the result list and click install. Be sure to select the latest version available.x
Open your PIO project and unzip the Arancino Library in the lib directory.
Open Visual Studio Code and go to PIO Home → Libraries. Search for Arancino, choose the version and click on ADD to Project button.
Add the lib_deps option and specify one of the following item:
- the name of the library with semantic version
lib_deps =
smartme-io/Arancino@^1.4.2
- the library github url followed by # to specify the tag or the branch of the repository
lib_deps =
https://github.com/smartmeio/arancino-library.git#1.4.2
It is possible to run unit tests for the Arancino Library. In order to do so you need to:
- Output is written to the Debug Serial (
uc UART 1
) and it is possible to read it by serial monitor using 115200 baudrate. - Flash
test/unit.ino
sketch on the microcontroller. - Run
test/unit.sh
on the host where Arancino Daemon is installed. *
NB: if no output on the serial monitor press uc reset
button and the output should be refreshed
*: It is possible to modify connection variables relative to redis databases inside unit.sh
file.