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)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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)