mpl - 3 - 115a2

Posted on
  • Hey all, I was trying to load the module for the MPL115A2 bari pressure sensor, to no avail. I keep getting an error saying:

    Uncaught Error: Field or method "getData" does not already exist, and can't create it on undefined

    I also have the model MPL3115A2, the more accurate version (I am building a digital weather station) so I was wondering if the module needed tweaking?

    I tried replacing all the modules instances of 'MPL115A2' with 'MPL3115A2', but this .getData error is in the way of knowing whether she'll work.

    Thanks for the help!

  • What's your code look like?

  • I don't see how you can end up with that error if connect() doesn't give an error (if connect() errors, it won't correctly create an MPL115A2 object - and in that case those errors are the ones that matter)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

mpl - 3 - 115a2

Posted by Avatar for scottKing @scottKing

Actions