You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Cleanup RPCs for lighting app
- Break apart lighting service and buttons.
- Rename RPCs.
- Create a common RPC file for Empty message.
Used EFR32 to test, will make changes to other platforms when
we have concensus on the style.
* Add device_common RPC service
A new RPC service which holds common CHIP RPCs.
* Initial prototype of linux RPC in lighting app
This adds RPCs to the lighting app using a server running over a
local socket (port 33000).
* Add lighting app rpc python tool.
This tool has all the protos for the lighting app built in and
can be used instead of pw_hdlc.rpc_console.
- Added a gn target to install the python tool into venv
lighting app is compiled with rpcs enabled.
- Will also bundle a wheel file which can be used to deploy
without requiring the source
Usage:
To start the console, provide a serial port as the --device argument
python -m lighting_app.rpc_console --device /dev/ttyUSB0
Alternatively to connect to a linux CHIP device provide the port.
python -m lighting_app.rpc_console -s localhost:33000
This starts an IPython console for communicating with the connected device. A
few variables are predefined in the interactive console. These include:
rpcs - used to invoke RPCs
device - the serial device used for communication
client - the pw_rpc.Client
protos - protocol buffer messages indexed by proto package
An example RPC command:
rpcs.chip.rpc.DeviceCommon.GetDeviceInfo()
* Cleanup: Use ArraySize in Rpc.cc for task
* Update lighting app RPC build for NRF
0 commit comments