Installation¶
The software is distributed via PyPI, it can be installed with pip
.
pip install arduino-simple-rpc
From source¶
The source is hosted on GitHub, to install the latest development version, use the following commands.
git clone https://github.com/jfjlaros/arduino-simple-rpc.git
cd arduino-simple-rpc
pip install .
Development¶
Tests are written in the pytest framework which can be installed with pip
.
pip install pytest
To run the automated tests, run py.test
in the root of the project folder.
By default, all tests that rely on particular hardware to be connected are
disabled. The --device
parameter can be used to enable these device
specific tests.
To test the Bluetooth interface.
py.test --device bt
To test the HardwareSerial interface.
py.test --device serial
To test the WiFi interface.
py.test --device wifi