Changing wire.h to application.h

I just got the particle electron. I am trying to hook up a pressure sensor to the electron and i am using the ADAFRUIT_BMP085 library, which #includes “wire.h”. This always ends up spitting back the “no such file or directory” error. I tried going into the library and exchanging the wire.h for application.h as mentioned in other forums posts, but i dont know how to edit libraries from the web ide. Any help woulld be greatly appreciated!

Could you show us the exact code you’re using (try the share link from the Web IDE)?
Also, what version of system firmware are you compiling against? (click the dropdown at the devices)

There already is a ported version of this library available in Web IDE

And the sample builds for me.
You may want to check the system target you are building for (I’d suggest 0.7.0).
And if you should happen to get bmp085test.ino:4:30: Adafruit_BMP085.h: No such file or directory with that sample just change #include <Adafruit_BMP085.h> to #include "Adafruit_BMP085.h". Web IDE has a glitch where it doesn’t recognise the library files at first. Once you built with "..." you can change back to <...> and it will still build.


It still is giving back the wire.h even after changing it to quotes. a link to my code:

Have you done that?

And you have an error in your own code. Particle.publish() does not take a double as second parameter.