User Manual
11
GetVariables (Result1,Socket,-1,2,0000,50,"Public","BattVolt",BattVolt_Remote,1)
SendVariables (Result2,Socket,-1,2,0000,50,"Public","PTemp",PTemp_Base,1)
CallTable(Test)
NextScan
EndProg
6.2
HTTP Web Server
Typing the datalogger IP address into a web browser will bring up its home page
as shown in Figure
6-1
. This default home page provides links to the current
record in all tables, including data tables, the Status table, the DataTableInfo table,
and the Public table. Clicking on a
Newest Record
link will bring up the latest
record for that table. It will be automatically refreshed every 10 seconds. Links
are also provided to the last 24 records in each data table. Clicking on a
Last 24
Records
link will bring up the last 24 records for that table. The
Last 24 Records
Display must be manually refreshed. In addition, links are provided to all HTML
files, all XML files, and all JPEG files in the datalogger.
Figure 6-1. Datalogger home page
If there is a default.html file on the datalogger, this will automatically become the
user-configurable home page.
The
WebPageBegin/WebPageEnd
declarations and the
HTTPOut()
instruction
can be used in a datalogger program to create HTML or XML files that can be
viewed by the browser. For more information on using these instructions, see the
datalogger manual or
CRBasic Editor
help.
See Web Server API in the contents of the
CRBasic Editor
help for more
information on using HTTP to access datalogger data.