- This commit updates the build process to use a custom toolchain and configuration, enabling compilation of multiple project components. - The primary goal of this commit is to provide a detailed overview and documentation for a zigbee weather station project, including firmware information and sensor component descriptions. - Updated configuration file with new constants and definitions. - The MAIN GOAL of these changes is to implement a comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction. - Main goal of the changes: Define a new header file with function prototypes and external variable declarations. - Added new functionality to initialize and read data from an anemometer sensor, introducing its necessary setup and calculation logic. - Added header file for anemometer sensor with function prototypes. - Initial implementation of BME280 sensor functionality. - Added function prototype for the BME280 initialization and data reading functions. - Initializes and configures a rain gauge sensor with GPIO interrupt setup. - Added function prototypes to the rain gauge sensor header file. - This commit adds a new C function to initialize and read data from a wind vane sensor. - Updated header file with new function prototype definitions. - This commit adds a new function `send_zigbee_data` to send various Zigbee data types. - Added Zigbee communication header file with function prototype for sending data.
14 lines
479 B
C
14 lines
479 B
C
#include "zigbee_comm.h"
|
|
#include "ZStack.h"
|
|
|
|
// Function to send Zigbee data (temperature, humidity, pressure, wind data, rain data)
|
|
void send_zigbee_data() {
|
|
// Send BME280 data (temperature, humidity, pressure)
|
|
ZStack_SendData(zcl_temp_humidity_data, sizeof(zcl_temp_humidity_data));
|
|
|
|
// Send wind data (wind direction, wind speed)
|
|
ZStack_SendData(zcl_wind_data, sizeof(zcl_wind_data));
|
|
|
|
// You can also add any other data here (rain data, etc.)
|
|
}
|