Lines Matching refs:RPC
6 ``pw_rpc`` can generate services which encode/decode RPC requests and responses
46 All examples in this document use the following RPC service definition.
83 // Implementations of the service's RPC methods; see below.
86 Unary RPC
88 A unary RPC is implemented as a function which takes in the RPC's request struct
98 Server streaming RPC
100 A server streaming RPC receives the client's request message alongside a
119 Closes the stream and sends back the RPC's overall status to the client.
123 Closes the stream and sends back the RPC's overall status to the client only
131 avoid accidentally closing it and ending the RPC.
133 Client streaming RPC
137 Bidirectional streaming RPC
149 Service clients are instantiated with a reference to the RPC client through
176 the type of RPC. Each method returns a client call object which stores the
177 context of the ongoing RPC call. For more information on call objects, refer to
178 the :ref:`core RPC docs <module-pw_rpc-making-calls>`.
182 RPC callbacks are invoked synchronously from ``Client::ProcessPacket``.
188 Unary RPC
190 A unary RPC call takes the request struct and a callback to invoke when a
191 response is received. The callback receives the RPC's status and response
203 Server streaming RPC
205 A server streaming RPC call takes the initial request struct and two callbacks.
219 Client streaming RPC
223 Bidirectional streaming RPC
229 The following example demonstrates how to call an RPC method using a nanopb
253 // The RPC will remain active as long as `call` is alive.