I assume you got all the details right, down to possible typos and internet connected...
The modules is kind of a kitchen sink... it provides access to the connectXYZ functions as well as to the class - speaking in oo terms - or in js: constructor function.
Just upload from the IDE on the right side / from the edit pane this code:
var bmeMod = require("BME680");
In console - on the left side you can then play around line by line with:
var BME680 = bmeMod.BME680;
var bme1 = bmeMod.connectI2C(...);
var bme2 = new (bmeMod.BME680)(...);
var bme3 = new BME680(...);
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.
See no issue with the module: in both - http://www.espruino.com/modules/BME680.js and http://www.espruino.com/modules/BME680.min.js - module files, I see the functions as part of the exported and by require retuned object
exports
... ...weird.I assume you got all the details right, down to possible typos and internet connected...
The modules is kind of a kitchen sink... it provides access to the connectXYZ functions as well as to the
class
- speaking in oo terms - or in js: constructor function.Just upload from the IDE on the right side / from the edit pane this code:
In console - on the left side you can then play around line by line with:
I hope this will help debug the issue...