-
Notifications
You must be signed in to change notification settings - Fork 81
Handlers
Most Click elements implement some read and/or write handlers that you can query using various techniques.
Place a ControlSocket element in your configuration, or launch Click with -p 1234, then access the handlers in one of these ways:
In the apps folder
In the apps folder
Simply connect to the selected port with nc, and type HELP to see commands. Type commands such as
-
READ list
to list elements -
READ element.handlers
to list the handlers of the element named element -
READ element.handler
to read the handler named "handler" of element named "element" -
WRITE element.handler YYY
to write the value YYY.
If you configured and compiled Click with libmicrohttpd-dev installed, the HTTPServer element will be automatically available. You can then use your navigator to browse the elements and the handlers.
Add a HTTPServer in your configuration, not connected to any other elements. You can change the ports and some other parameters as stated in the wiki of the element. By default it will listen on port 80.
One can change the writable handlers by using POST requests.