Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Latest version of BSEC-Arduino-library does not compile in Arduino Web Editor

    Latest version of BSEC-Arduino-library does not compile in Arduino Web Editor

    dbeamon
    Occasional Visitor

    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.

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    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.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist