docs: Document "register_remote_method" endpoint

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine
2020-10-27 15:29:46 -04:00
committed by KevinOConnor
parent 8a5e7d8d28
commit fc0a18f891
2 changed files with 34 additions and 0 deletions

View File

@@ -305,6 +305,10 @@ Available "action" commands:
- `action_emergency_stop(msg)`: Transition the printer to a shutdown
state. The `msg` parameter is optional, it may be useful to describe
the reason for the shutdown.
- `action_call_remote_method(method_name)`: Calls a method registered
by a remote client. If the method takes parameters they should
be provided via keyword arguments, ie:
`action_call_remote_method("print_stuff", my_arg="hello_world")`
### Variables