ArduRPC Python
Python library to control microcontroller based boards by using the ArduRPC protocol.
You can find more information in the documentation.
Install
Requirements:
Python 2.7 or Python >= 3.2
Requirements (optional):
pyserial >= 2.7
Install:
Install the basic ArduRPC library.
$ pip install ardurpc
Example
The pyserial library is required to run the following example.
import ardurpc
from ardurpc.connector import Serial, UDP
# Connect to the serial port
con = Serial("/dev/ttyACM0", 9600)
# More examples:
# con = Serial("/dev/ttyUSB0", 9600)
# con = UDP(host="192.168.1.1", port=1234)
# New instance
rpc = ardurpc.ArduRPC(connector=con)
print("Version(Protocol): {0}".format(rpc.getProtocolVersion()))
print(
"Version(Library): {0}".format(
".".join([str(i) for i in rpc.getLibraryVersion()])
)
)
print(
"Available handlers: {0}".format(
", ".join(rpc.get_handler_names())
)
)
License
Published under the LGPLv3+ (see LICENSE for more information)
Release files for ardurpc 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ardurpc-0.3.tar.gz | 9.1 kB | Details |
Release files / ardurpc-0.3.tar.gz
| Download URL | ardurpc-0.3.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80291f0fe6405a0d6823779c7e8de8c78755173bab9fe7a38bf357050fe037d3
|
|
BLAKE2b-256 checksum How to use checksums |
05bb77be4929b463c53ffb135f34b7c48b87b4bf41ab2c92cfad3a3412e42246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |