Files
nimble_gatt_temp_server/main/include/temp.h

20 lines
383 B
C
Raw Normal View History

2025-12-01 00:42:14 +01:00
#ifndef HEART_RATE_H
#define HEART_RATE_H
/* Includes */
/* ESP APIs */
#include "esp_random.h"
2025-12-02 20:07:04 +01:00
#include "dht.h"
2025-12-01 00:42:14 +01:00
/* Defines */
#define HEART_RATE_TASK_PERIOD (1000 / portTICK_PERIOD_MS)
2025-12-02 20:07:04 +01:00
#define DHT_GPIO_PIN 23
#define DHT_SENSOR_TIPO DHT_TYPE_DHT11
2025-12-01 00:42:14 +01:00
/* Public function declarations */
2025-12-01 12:18:38 +01:00
uint8_t get_temp(void);
void update_temp(void);
2025-12-02 20:07:04 +01:00
void init_sensor(void);
2025-12-01 00:42:14 +01:00
#endif // HEART_RATE_H