Skip to content

vincentcreusot/pico-bme680

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BME680 values publishing with MQTT

Features

Sends values from the BME680 using MQTT simple client

  • temperature
  • humidity
  • pressure
  • gas
  • altitude

Usage

Tested with a RasperryPi Pico W and a BME680 Pimoroni Sensor.

To use the MQTT client:

  1. flash your Pi
  2. copy all files including
  • the certificates needed, key, cert and CA in PEM format
  • the main.py, mqtt_connect.py, bme680.py files
  • the config.json file with the right values
  • the lib folder

Configuration

The configuration in the config.json file is as follows:

{
    "mqtt": {
        "broker": "<broker address>",
        "topic": "<topic name>",
        "cert_key": "<path to cert key>",
        "cert_pem": "<path to certificate>",
        "cert_ca": "<path to CA cert>",
        "wifi_ssid": "<ssid of wifi to use>",
        "wifi_password": "<password of wifi to use>"
    }
}

Dependencies

About

MQTT push of BME680 sensor values

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages