Changeset 809
- Timestamp:
- 08/11/08 15:45:51 (3 months ago)
- Location:
- firmware/trunk
- Files:
-
- 3 modified
-
core/makingthings/io.c (modified) (1 diff)
-
core/makingthings/network.c (modified) (3 diffs)
-
libraries/webserver/webserver.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
firmware/trunk/core/makingthings/io.c
r808 r809 254 254 Read whether an IO pin is in use. 255 255 @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.257 256 @return non-zero if active, 0 if inactive 258 257 -
firmware/trunk/core/makingthings/network.c
r792 r809 1289 1289 1290 1290 \section properties Properties 1291 The Network system has seven properties1291 The Network system has the following properties 1292 1292 - address 1293 1293 - mask … … 1297 1297 - osc_udp_port 1298 1298 - dhcp 1299 - webserver1300 1299 1301 1300 \par Address … … 1368 1367 \code /network/dhcp \endcode 1369 1368 with no argument value. 1370 1371 \par Web Server1372 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 server1374 consumes a significant chunk of the board's resources, it's best to turn it off when you're not using it.1375 \par1376 To turn the web server on, send the message1377 \code /network/webserver 1 \endcode1378 then enter the board's IP address into the address bar of your favorite web browser. Send the message1379 \code /network/webserver 0 \endcode1380 to turn the webserver off.1381 1369 1382 1370 \par MAC -
firmware/trunk/libraries/webserver/webserver.c
r792 r809 827 827 #ifdef OSC // Webserver OSC interface 828 828 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 829 868 #include "osc.h" 830 869 static char* WebServerOsc_Name = "webserver";
