Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Trying to understand the error codes in Arduino IDE

Trying to understand the error codes in Arduino IDE

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 3 Posters 6.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rvendrameR Offline
    rvendrameR Offline
    rvendrame
    Hero Member
    wrote on last edited by
    #2

    How did you declare the bpm object? something like this:

    Adafruit_BMP085 bmp;
    

    And did you try to remove the altitude from the equation?

    float pressure = bmp.readSealevelPressure()  * 0.01;
    

    Home Assistant / Vera Plus UI7
    ESP8266 GW + mySensors 2.3.2
    Alexa / Google Home

    1 Reply Last reply
    0
    • 5546dug5 Offline
      5546dug5 Offline
      5546dug
      wrote on last edited by
      #3

      @rvendrame I have something in the lines where the #include statements are found
      Adafruit_BMP085 bmp = Adafruit_BMP085();
      what ever that does
      by adding the first line nothing and the same result taking altitude out of the second line

      This is the copy of the error code from trying to compile

      Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Nano, ATmega328"

      Build options changed, rebuilding all

      Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

      Using library MySensors in folder: C:\Users\Carolyn & Doug\Documents\Arduino\libraries\MySensors (legacy)

      Using library DHT in folder: C:\Users\Carolyn & Doug\Documents\Arduino\libraries\DHT (legacy)

      Using library BH1750 in folder: C:\Users\Carolyn & Doug\Documents\Arduino\libraries\BH1750 (legacy)

      Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire

      Using library Adafruit_BMP085 in folder: C:\Users\Carolyn & Doug\Documents\Arduino\libraries\Adafruit_BMP085 (legacy)

      C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Users\Carolyn & Doug\Documents\Arduino\libraries\MySensors -IC:\Users\Carolyn & Doug\Documents\Arduino\libraries\DHT -IC:\Users\Carolyn & Doug\Documents\Arduino\libraries\BH1750 -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Users\Carolyn & Doug\Documents\Arduino\libraries\Adafruit_BMP085 C:\Users\CAROLY~1\AppData\Local\Temp\build4008044324059414343.tmp\mini_weather_sat__3.cpp -o C:\Users\CAROLY~1\AppData\Local\Temp\build4008044324059414343.tmp\mini_weather_sat__3.cpp.o

      mini_weather_sat__3.ino: In function 'void loop()':
      mini_weather_sat__3.ino:102:28: error: 'class Adafruit_BMP085' has no member named 'readSealevelPressure'
      'class Adafruit_BMP085' has no member named 'readSealevelPressure'

      1 Reply Last reply
      0
      • rvendrameR Offline
        rvendrameR Offline
        rvendrame
        Hero Member
        wrote on last edited by
        #4

        Looking into the source code at github, it looks it expects a float and returns a 'int32_t':

        int32_t Adafruit_BMP085::readSealevelPressure(float altitude_meters) {
          float pressure = readPressure();
          return (int32_t)(pressure / pow(1.0-altitude_meters/44330, 5.255));  
        } 
        

        so try something like that (NOT TESTED):

          float altitude = 12345.0  //  <<< Replace with correct altitude
        
          int32_t pressure; 
        
        
          void loop() {  
          .... 
        
        
              pressure = readSealevelPressure( altitude );  
        
              Serial.println( pressure );
        

        Home Assistant / Vera Plus UI7
        ESP8266 GW + mySensors 2.3.2
        Alexa / Google Home

        1 Reply Last reply
        0
        • 5546dug5 Offline
          5546dug5 Offline
          5546dug
          wrote on last edited by
          #5

          @rvendrame I am glad you found something and I know you are suggesting something but this old goat is lost, am I to put this second box of code into the sketch somewhere, and it looks as though it would go in setup before the loop?

          still v slow with code...... int32_t is given a float in meters by me, finds float pressure then does a calculation to send somewhere else?

          Not to worried about how code works just would like the error to go away but all this will help with the knowledge base.

          1 Reply Last reply
          0
          • 5546dug5 Offline
            5546dug5 Offline
            5546dug
            wrote on last edited by
            #6

            @rvendrame Looking again I see second part of the code would be put into the loop segment .?

            1 Reply Last reply
            0
            • rvendrameR Offline
              rvendrameR Offline
              rvendrame
              Hero Member
              wrote on last edited by
              #7

              The first block is just a declaration of the code from Adafruit_BPM085, you don't need it (it is already there in some include).

              Both float and int32_t lines can go just before the loop() line.

              The final two lines should be placed inside the loop() routine.

              Home Assistant / Vera Plus UI7
              ESP8266 GW + mySensors 2.3.2
              Alexa / Google Home

              1 Reply Last reply
              0
              • 5546dug5 Offline
                5546dug5 Offline
                5546dug
                wrote on last edited by
                #8

                @rvendrame you gave me an idea

                I went to github and found the Adafruit-BMP085-library and downloaded the zip file >put the zipped file into my sketch file overwriting the existing .

                There may have been a revision or there was corruption but it does now seem to compile.

                I do THANK YOU for your help in this problem and ultimate resolution!

                My troubleshooting skills got a small bit better but I will try the fix on the original to see if that solves it also.

                1 Reply Last reply
                0
                • rvendrameR Offline
                  rvendrameR Offline
                  rvendrame
                  Hero Member
                  wrote on last edited by
                  #9

                  Thx, I am glad you made it work.

                  Home Assistant / Vera Plus UI7
                  ESP8266 GW + mySensors 2.3.2
                  Alexa / Google Home

                  1 Reply Last reply
                  0
                  • 5546dug5 Offline
                    5546dug5 Offline
                    5546dug
                    wrote on last edited by
                    #10

                    @rvendrame code is now inside the promini and the quest goes on!
                    Thx doug

                    1 Reply Last reply
                    0
                    • epierreE Offline
                      epierreE Offline
                      epierre
                      Hero Member
                      wrote on last edited by
                      #11

                      I guess you've used the v2 library although the v1 is the one commonly provided today
                      https://learn.adafruit.com/bmp085/using-the-bmp085-api-v2

                      @hek The BMP085 has been discontinued by BOSCH and replaced with the BMP180 which is smaller and less expensive but is identical in terms of wiring and software!

                      z-wave - Vera -&gt; Domoticz
                      rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                      mysensors -&gt; mysensors-gw -&gt; Domoticz

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      13

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular