Lab3 - Pressure, temperature, and humidity sensors displayed on a webpage.

Dependencies:   EthernetNetIf NTPClient_NetServices GPS mbed HTTPServer SDFileSystem

main.h

Committer:
kadams6
Date:
2010-10-05
Revision:
0:dfd0841721d5

File content as of revision 0:dfd0841721d5:

#ifndef __MAIN_H
#define __MAIN_H

typedef enum {
    ERR_ETHERNET = 0, // Error setting up ethernet interface
    ERR_FILE,         // Error reading or writing to the sensor data file
    ERR_UPFEED        // Error while uploading sensor feed
} ErrorCode;

void ledError(ErrorCode);
void pollSensors();
void flipLed();
void postFeed(float pressure, float humidity, float temperature);

#define BLINK_RATE          0.25
#define SENSOR_POLL_RATE    30

#endif