-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmr_config.h
33 lines (27 loc) · 1.24 KB
/
tmr_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* @Author: Jakub Witowski
* @Project name: iBeacon
* @File name: tmr_config.h
*/
#ifndef _TIMER_H_
#define _TIMMER_H_
/* ==================================================================== */
/* ========================== include files =========================== */
/* ==================================================================== */
#include <Ticker.h>
/* ==================================================================== */
/* ============================= defines ============================== */
/* ==================================================================== */
#define TMR_ESTABLISH_CONNECTION_TIMEOUT_MS (16000)
#define TMR_RECONNECT_TIMEOUT_MS (20000)
#define TMR_SENSOR_MEASUREMENT_PERIOD_MS (2000)
/* ==================================================================== */
/* ===================== function declarations ======================== */
/* ==================================================================== */
/* Functions are defined in WebSockerServer main file */
void Start_est_connection_tmr(uint16_t tmout);
void Start_sensor_measurement_tmr(uint16_t tmout);
void Start_reconnect_tmr(uint16_t tmout);
void Stop_reconnect_tmr();
#endif /* _TIMER_H_ */
/* EOF */