Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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()
{