2020-07-11 12:11:34 +02:00
|
|
|
/**
|
|
|
|
* combine bluetooth and crypto parts to build EXPOSURE NOTIFICATION
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ena_DETECTION_H_
|
|
|
|
#define _ena_DETECTION_H_
|
|
|
|
|
|
|
|
#define ENA_DETECTION_LOG "ESP-ENA-detection" // TAG for Logging
|
|
|
|
|
2020-07-13 20:32:53 +02:00
|
|
|
#define ENA_DETECTION_TRESHOLD (300) // meet for longer than 5 minutes
|
2020-07-11 12:11:34 +02:00
|
|
|
|
|
|
|
#include "ena-crypto.h"
|
|
|
|
|
|
|
|
void ena_detections_temp_refresh(uint32_t unix_timestamp);
|
|
|
|
|
2020-07-12 14:14:06 +02:00
|
|
|
void ena_detection(uint32_t unix_timestamp, uint8_t *rpi, uint8_t *aem, int rssi);
|
2020-07-11 12:11:34 +02:00
|
|
|
|
|
|
|
#endif
|