ardurpc 0.3

Last updated:

0 purchases

ardurpc 0.3 Image
ardurpc 0.3 Images
Add to Cart

Description:

ardurpc 0.3

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)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.