Skip to content
Tom Barbette edited this page Sep 8, 2021 · 3 revisions

Most Click elements implement some read and/or write handlers that you can query using various techniques.

ControlSocket

Place a ControlSocket element in your configuration, or launch Click with -p 1234, then access the handlers in one of these ways:

Clicky

In the apps folder

ClickController

In the apps folder

netcat, or direct TCP query

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.

HTTPServer

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.

Clone this wiki locally