Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BME688, ESP8266, BESC2 to InfluxDB

    BME688, ESP8266, BESC2 to InfluxDB

    Gavin
    New Poster

    Hello, 

    I followed the set up instrustions on the BSEC2 Github and managed to get  the BME688  sensors working using the ESP8266 (arduino feather Huzzah!) and the basic example. I wanted to write the data i'm reading to an influxDB server although the code causes the ESP8266 to crash whenever I add the client.writepoint(sensor) line.

    I've attached the code and commented where I've tried to add the write command (both inside the loop funciton and newdatacall function) if anyone could advise how to modify the code so that the upload to influx is successful without causeing the code to crash that would be fantstic. 

    Thanks

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Gavin,

    Official BSEC2 example demonstrates reading BME688 data and executing the BSEC2 algorithm. It haven't included uploading data to the InfluxDB server.

    Yeah i understand it doesn't include the upload. Thank you for the reply anyhow 

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Gavin,

    You could try to find some example to use from sever supplier.

    Check out adding MQTT to the board, publishing the data of the sensor to the mqtt broker, and then connecting the mqtt broker to influx.

    A bit of a round about way but it will probably be easier for you to do it like this.

    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