Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

HTTP

Description

This command can be used to set up the internal web server which can be used to communicate with the module and configure the module over any web browser. HTTP requires one or two arguments which are listed below:

1. A single argument, either ON or OFF
This enables(ON) or disables(OFF) the HTTP server.

2. Two arguments, USER xxxx
This sets the user name for HTTP authentication. You must enter this name in the login box of the browser when connecting to the module. 

3. Two arguments, PASS xxxx
This sets the password for HTTP authentication. You must enter this name in the login box of the browser when connecting to the module.

4. Two arguments, PORT xxxx
This is the port number where the server listens for connections. Usually use PORT 80 for standard HTTP, but you can use any other port as well.

Return Value

ERR_LENGTH (5) if username or password is too long.
ERR_ARGUMENT (4) if other arguments do not match.
ERR_OK (0) if command was accepted. 

Example

HTTP USER paparoach

This configures the user name to be "paparoach".

Remarks

The internal HTTP server supplies the web interface for a module's configuration. It is not intended to run user-specific web pages. Per default (factory settings) the server is enabled on port 80, user is admin and password 1234.

 


 

HTTP?

Description

This command simpy show the settings of the web server as a single line. For example:

admin 1234 80 ON

This means: the server is enabled on port 80, user is admin and password 1234.