Environmental module

Asset Tracker Template

tags
Asset Tracker Template

The Environmental module collects sensor data from the onboard BME680 environmental sensor on the Thingy:91 X. The module provides temperature, pressure, and humidity readings to other modules through the zbus messaging system. The module initializes the sensor hardware and responds to sampling requests from the main application module.

To initiate a sensor reading, the main module sends an ENVIRONMENTAL_SENSOR_SAMPLE_REQUEST message to the environmental module. The environmental module then reads the sensor data and sends an ENVIRONMENTAL_SENSOR_SAMPLE_RESPONSE message with the collected data asynchronously.