Changeset 809

Show
Ignore:
Timestamp:
08/11/08 15:45:51 (3 months ago)
Author:
liamstask
Message:

- update doc for webserver OSC interface
- small doc fix for IO

Location:
firmware/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • firmware/trunk/core/makingthings/io.c

    r808 r809  
    254254  Read whether an IO pin is in use. 
    255255  @param index An int specifying which IO line.  Use the appropriate entry from the \ref IoIndices 
    256   @param output Specify 1 for an output, or 0 for an input. 
    257256  @return non-zero if active, 0 if inactive 
    258257   
  • firmware/trunk/core/makingthings/network.c

    r792 r809  
    12891289    
    12901290    \section properties Properties 
    1291     The Network system has seven properties  
     1291    The Network system has the following properties 
    12921292    - address 
    12931293    - mask 
     
    12971297    - osc_udp_port 
    12981298    - dhcp 
    1299     - webserver 
    13001299 
    13011300    \par Address 
     
    13681367    \code /network/dhcp \endcode 
    13691368    with no argument value. 
    1370      
    1371     \par Web Server 
    1372     The \b webserver property sets whether the demo web server on the Make Controller is running or not. 
    1373     The web server can provide current stats about the board through a web browser interface.  Because the web server 
    1374     consumes a significant chunk of the board's resources, it's best to turn it off when you're not using it. 
    1375     \par 
    1376     To turn the web server on, send the message 
    1377     \code /network/webserver 1 \endcode 
    1378     then enter the board's IP address into the address bar of your favorite web browser.  Send the message 
    1379     \code /network/webserver 0 \endcode 
    1380     to turn the webserver off. 
    13811369    
    13821370    \par MAC 
  • firmware/trunk/libraries/webserver/webserver.c

    r792 r809  
    827827#ifdef OSC // Webserver OSC interface 
    828828 
     829/** \defgroup webserverosc Web Server - OSC 
     830  Configure the Web Server  via OSC. 
     831  \ingroup OSC 
     832 
     833  \section devices Devices 
     834    There is only one Web Server system, so a device index is not used. 
     835    
     836  \section properties Properties 
     837  The Web Server system has the following properties 
     838  - active 
     839  - listenport 
     840 
     841  \section details Property Details 
     842 
     843  \b Active 
     844 
     845  The \b active property sets whether the web server on the Make Controller is running or not. 
     846  The default web server does not really do anything too interesting, but provides a count of the 
     847  number of requests it has served.  You can access the web server by typing the board's IP address 
     848  into your favorite browser.  You can check the board's IP address in mchelper. 
     849 
     850  To turn the web server on, send the message 
     851  \code /webserver/active 1 \endcode 
     852  then enter the board's IP address into the address bar of your favorite web browser.  Send the message 
     853  \code /network/webserver 0 \endcode 
     854  to turn the webserver off. 
     855 
     856  <b> Listen Port </b> 
     857 
     858  The \b listenport property sets which port the web server should listen on for incoming requests.  By default 
     859  this is set to 80, the standard port for HTTP. 
     860 
     861  To listen on port 8080, send the message 
     862  \code /webserver/listenport 8080 \endcode 
     863 
     864  Note that the server will most likely already be listening on the previous port, and it won't update its port 
     865  until it serves that last request it's waiting for. 
     866*/ 
     867 
    829868#include "osc.h" 
    830869static char* WebServerOsc_Name = "webserver";