2 http web server, Http web server – Campbell Scientific NL115 Ethernet Interface and CompactFlash Module User Manual

Page 17

Advertising
background image

NL115 Ethernet and CompactFlash

®

Module

7.1.2 HTTP Web Server

Typing the datalogger’s IP address into a web browser will bring up its home

page, as shown in FIGURE 7-1. This default home page provides links to the

current record in all tables, including data tables, the Status 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 7-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.

FileOpen() and FileWrite() can be used to create HTML pages,

but this requires first writing the file to the datalogger’s USR

drive. It is less convenient, and the page will be only as current as

it is written to the file.

NOTE

11

Advertising