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

Dependencies:   EthernetNetIf NTPClient_NetServices GPS mbed HTTPServer SDFileSystem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef __MAIN_H
00002 #define __MAIN_H
00003 
00004 typedef enum {
00005     ERR_ETHERNET = 0, // Error setting up ethernet interface
00006     ERR_FILE,         // Error reading or writing to the sensor data file
00007     ERR_UPFEED        // Error while uploading sensor feed
00008 } ErrorCode;
00009 
00010 void ledError(ErrorCode);
00011 void pollSensors();
00012 void flipLed();
00013 void postFeed(float pressure, float humidity, float temperature);
00014 
00015 #define BLINK_RATE          0.25
00016 #define SENSOR_POLL_RATE    30
00017 
00018 #endif