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.)
|
||
|
|
}
|