title: Using BME280 with SNMP librarie
body: <p>I'm trying to use SNMP library to read BME280 sensor on NODEMCU, but I get the following error after compiling sketch:</p>
  <p>ERROR:</p>
  <pre><code>ets Jan  8 2013,rst cause:2, boot mode:(3,6)
  
  load 0x4010f000, len 3584, room 16 
  tail 0
  chksum 0xb0
  csum 0xb0
  v2843a5ac
  ~ld
  </code></pre>
  <p>MY CODE:</p>
  <pre><code>#include &lt;ESP8266WiFi.h&gt;
  #include &lt;WiFiUdp.h&gt;
  #include &lt;Arduino_SNMP.h&gt;
  #include &lt;Wire.h&gt;
  #include &lt;Adafruit_Sensor.h&gt;
  #include &lt;Adafruit_BME280.h&gt;
  
  #define SEALEVELPRESSURE_HPA (1013.25)
  
  Adafruit_BME280 bme;
  const char* ssid = &quot;Andre&quot;;
  const char* password = &quot;12345678&quot;;
  float temperature = bme.readTemperature();
  float humidity = bme.readHumidity();
  float pressure = bme.readPressure() / 100.0F;
  float altitude = bme.readAltitude(SEALEVELPRESSURE_HPA);
  WiFiUDP udp;
  
  SNMPAgent snmp = SNMPAgent(&quot;public&quot;);  // Starts an SMMPAgent instance with the community string 'public'
  
  
  void setup() {
      Serial.begin(115200);
      WiFi.begin(ssid, password);
      Serial.println(&quot;&quot;);
      bme.begin(0x76);
  
      // Wait for connection
      while (WiFi.status() != WL_CONNECTED) {
          delay(500);
          Serial.print(&quot;.&quot;);
      }
      Serial.println(&quot;&quot;);
      Serial.print(&quot;Connected to &quot;);
      Serial.println(ssid);
      Serial.print(&quot;IP address: &quot;);
      Serial.println(WiFi.localIP());
      
      // give snmp a pointer to the UDP object
      snmp.setUDP(&amp;udp);
      snmp.begin();
      
      snmp.addFloatHandler(&quot;.1.3.6.1.4.1.12345.1&quot;, &amp;temperature);
      snmp.addFloatHandler(&quot;.1.3.6.1.4.1.12345.2&quot;, &amp;humidity, true);
      snmp.addFloatHandler(&quot;.1.3.6.1.4.1.12345.3&quot;, &amp;pressure);
      snmp.addFloatHandler(&quot;.1.3.6.1.4.1.12345.4&quot;, &amp;altitude);
      // you can accept SET commands with a pointer to an integer (or string)
      
  }
  
  void loop() {
      snmp.loop(); // must be called as often as possible
  }
  </code></pre>
  <p>I've been trying to figure out what's wrong with my code.</p>