Skip to main content

Image

EdgePi RPC Client

The RPC client exposes functionality of the EdgePi Python SDK to be used over either a network connection or on local sockets, allowing for potential remote control of the EdgePi.

Since the client directly mirrors the SDK, you can take advantage of the user-friendly SDK functionality with the flexibility of different connection protocols depending on your specific use case.

You can learn more about the Python SDK here.

Using the RPC Client

Install the RPC client through the terminal:

$ python3 -m pip install edgepi-rpc-client

Once installed, you can control the modules of the EdgePi directly through the SDK's wide functionality.

For example, from a remote connection with address localhost and port 5555, initialize a client module as:

from edgepi_rpc_client.services.adc.client_adc_service import ClientAdcService
from edgepi_rpc_client.services.adc.adc_pb_enums import ADCChannel, ConvMode

# initialize ADC Client
adc_client = ClientAdcService('tcp://localhost:5555')

# configure ADC to sample input pin 4 (the input pins are 0-indexed)
adc_client.set_config(adc_1_analog_in=ADCChannel.AIN3, conversion_mode=ConvMode.CONTINUOUS)

# send command to start automatic conversions
adc_client.start_conversions()

# perform 10 voltage reads
for _ in range(10):
  out = adc_client.read_voltage()
  print(out)

# stop automatic conversions
adc_client.stop_conversions()

Once the client is initialized you can control the EdgePi exactly as you would through the SDK.

For details about available modules visit the SDK GitHub repository linked above.

Metadata

Release files for edgepi-rpc-client 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edgepi-rpc-client 0.0.14
File Size Uploaded
edgepi-rpc-client-0.0.14.tar.gz 20.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edgepi-rpc-client 0.0.14
File Interpreter ABI Platform
edgepi_rpc_client-0.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 51.1 kB

Release files / edgepi-rpc-client-0.0.14.tar.gz

Download URL edgepi-rpc-client-0.0.14.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
81a9cccdadbc7c4942d4a3f45344b583ddd895d9e3f55be83c325f0ba29899a9
BLAKE2b-256 checksum
How to use checksums
bc952b541588f8fa0e00426ca4445f746fd4d11fafdeb9ffe6b4ba6a7b2014d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / edgepi_rpc_client-0.0.14-py3-none-any.whl

Download URL edgepi_rpc_client-0.0.14-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77ede1eb158fa50e6f8499aa67faffcbb52b04b7a41fc85d2265de4ded44b238
BLAKE2b-256 checksum
How to use checksums
6a75aa1b701e3c1a1e7509d0f7d67e60cba5c74e3e40e35200bca58ca7e58e7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page