mbed Weather Platform firmware http://mbed.org/users/okini3939/notebook/mbed-weather-platform-firmware/
Dependencies: EthernetNetIf SDHCFileSystem I2CLEDDisp Agentbed NTPClient_NetServices mbed BMP085 HTTPClient ConfigFile I2CLCD
Diff: snmp.cpp
- Revision:
- 18:9286e5010c14
- Parent:
- 14:ee6cc1632166
--- a/snmp.cpp Fri Apr 08 15:59:29 2011 +0000 +++ b/snmp.cpp Tue May 31 15:40:14 2011 +0000 @@ -9,7 +9,7 @@ #include "Agentbed.h" #include "EthernetNetIf.h" #include "ConfigFile.h" -#include "conf.h" +#include "weather.h" AgentbedClass Agentbed; @@ -46,7 +46,7 @@ // RFC1213 local values static char locDescr[] = "mbed Weather Platform"; // read-only (static) static char locObjectID[] = "1.3.6.1.4.1.36582"; // read-only (static) -uint32_t locUpTime = 0; // read-only (static) +volatile uint32_t locUpTime = 0; // read-only (static) static char locContact[] = "<root@weather>"; // should be stored/read from EEPROM - read/write (not done for simplicity) static char locName[] = "weather.mbed"; // should be stored/read from EEPROM - read/write (not done for simplicity) static char locLocation[] = "weather"; // should be stored/read from EEPROM - read/write (not done for simplicity) @@ -57,8 +57,6 @@ SNMP_API_STAT_CODES api_status; SNMP_ERR_CODES status; -extern DigitalOut led_y; -extern Sensor sensor; void pduReceived() {