PHP Classes
elePHPant
Icontem

File: commands.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Leigh Edwards  >  Davis Weather  >  commands.php  >  Download  
File: commands.php
Role: Configuration script
Content type: text/plain
Description: defined constants
Class: Davis Weather
Communicate with Davis weather stations
Author: By
Last change:
Date: 2 years ago
Size: 1,421 bytes
 

Contents

Class file image Download
<?php
// this file contains a list of davis datalogger comands


// DEFINE COMMAND CONSTANTS
define ( 'WAKE', "\n" ); // used to wake the weather station from standby. This should be the first command sent
define ( 'TEST', "TEST" ); // used to test the connection
define ( 'GETSTATIONTYPE', "WRD\n" ); // returns the station type
define ( 'RXCHECK', "RXCHECK" ); //Sends the Console Diagnostics report.
define ( 'STRMON', "STRMON" ); //Echos all of the data packets sent by sensor transmitters.
define ( 'STRMOFF', "STRMOFF" ); //stops stream from above
define ( 'DUMP', "DMP" ); // Downloads the entire archive memory.
define ( 'DUMPAFTER', "DMPAFT" ); //Downloads the records after a specified date and time.
define ( 'GETEE', "GETEE" ); // Reads the full 4K EEPROM in one data block.
define ( 'LAMPON', "LAMPS 1" ); // turns on the console lights
define ( 'LAMPOFF', "LAMPS 0" ); // turns oFF the console lights
define ( 'GETTIME', "GETTIME" ); // returns the current time of the console
define ( 'BARDATA', "BARDATA" ); // Displays of the current barometer calibration parameters
define ( 'SLEEP', 'SLEEP' ); // undocumented.....
define ( 'VER', 'VER' );
define ( 'NVER', 'NVER' );
define ( 'CLEARLOG', 'CLRLOG' );
define ( 'HILO', 'HILOWS');
// DEFINE REPONCE CONSTANTS
define ( 'WAKE_ACK', '\n\r' );
define ( 'ACK', '\x06' );
define ( 'ESC', '\x1b' );
define ( 'OK', '\n\rOK\n\r' );
?>