03-01-2023 04:27 PM
Hi,
When you create a sketch on the Arduino Web Editor that uses the Arduino_MKRIoTCarrier library (for instance whenever you use an Arduino MKR board like MKR1010), there are compilation errors.
/home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_1/src/PressureClass.cpp:38:24: error: 'BME680_I2C_ADDR_PRIMARY' was not declared in this scope
The web editor uses the latest BSEC-Arduino-library (https://github.com/boschsensortec/BSEC-Arduino-library) library version by default (in this case, it is v1.7.1492). According to Arduino forum, the workaround is to go back to the previous version v1.6.1480, as you can check in this thread:
https://forum.arduino.cc/t/mkriot-carrier-not-compiling/1084246/2
But this is just a workaround and not everybody is skilled enough to apply the fix (or even to find it). So it would be great if the library is fixed so that it works out-of-the-box on the Web Editor.
03-02-2023 03:02 AM
Hi dbeamon,
Whether to upgrade to the latest BSEC version depends on whether your application needs to be upgraded to the latest version.
If you need to upgrade to the latest version of BSEC, you need to migrate the Bosch BME68x Library(wraps the BME68x Sensor API for Arduino software environment) under the BSEC package and the BSEC library to Arduino, not just migrate BSEC library.