TempTrack-ESP/include/config.h

18 lines
578 B
C
Raw Normal View History

2023-05-29 18:29:15 +02:00
#pragma once
#include <stdint.h>
#include <hal/gpio_types.h>
constexpr uint32_t serialBaudRate = 115200;
2023-06-01 16:18:48 +02:00
// The pin connected to the push button
// The button should be connected to GND
constexpr gpio_num_t wakeupButtonPin = GPIO_NUM_27;
2023-05-29 18:29:15 +02:00
// The time (in seconds) for which the device should stay awake after the button is pressed
// The device also stays awake as long as a bluetooth connection is active
constexpr uint32_t wakeupDurationAfterButtonPress = 30;
2023-06-07 16:38:33 +02:00
// The interval between temperature measurements
2023-05-29 18:29:15 +02:00
constexpr uint32_t temperatureMeasurementIntervalSeconds = 60;