volttron

Calling a @RPC method outside of volttron


Say I have a running volttron agent with a @RPC decorated method (if that's relevant). Are there any ways to call that method from outside of the volttron platform? (In my case from a django web server)


Solution

  • An agent may register endpoints on the VOLTTRON web service. A callback may be setup for the endpoint as needed.

    The web service must be enabled and the agent needs to pass "enable_web=True" to the base agent constructor.

    You can find the documentation and examples here: http://volttron.readthedocs.io/en/develop/specifications/webframework.html