The solution I would offer is something along these lines: the client does
a streaming call "ListenForInstructions" and the server responds to it with
a stream of "Instruction" messages.

On Sun, Aug 13, 2017 at 9:48 AM, Tim Hughes <[email protected]> wrote:

>
>
> I have been trying to work this out, does it make sense in grpc to have an
> agent which initiates a connection with the controller and then have the
> controller make requests of the agent.
> I am starting to implement a IoT "thing" which starts up and connects to a
> central server then you can use the central server to control the "thing".
> looking at grpc it appears to be very opinionated on the client makes the
> connection and then client makes requests of server where as I am trying to
> do client connects to server and waits for instructions from server.
>
> If anyone knows of an example it would be helpful as i cannot find anything
>
> Cheers
>
> Tim
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/dd2f09f8-4aa4-4948-af0a-07344a0ab1b9%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/dd2f09f8-4aa4-4948-af0a-07344a0ab1b9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAEvr0PEujEbWwK662SGKM%2BtyL3kJTHNGxnQ5wMYY5gWp6cMQMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to