I’ve picked through and grasped most of the IOT example and the HTTP examples and I’m trying to put them together in practice.
I’m looking for a concise example of how - in the http setup, or elsewhere - to get an ActorRef to the DeviceManager in order to send a temp update or read values for the mentioned dashboard.
HttpServerActorInteractionExample uses classic
actorOf which I think spawns a new actor.
I need to get an ActorRef to the existing DeviceManager because it has the state of all the groups.
Presumably Receptionist is the way to go? But how to query it when the HTTP layer of code is not an actor,
Or do I query for it everytime when the code is on the actor context.
Of course I want to Patterns.ask(deviceMangerRef, … ) for Http req/resp to this.