2018-07-17 15:15:58 +02:00
|
|
|
#ifndef _MACSNIFF_H
|
|
|
|
#define _MACSNIFF_H
|
2018-06-09 22:28:20 +02:00
|
|
|
|
2018-04-02 01:30:24 +02:00
|
|
|
// ESP32 Functions
|
|
|
|
#include <esp_wifi.h>
|
|
|
|
|
2018-07-15 23:40:42 +02:00
|
|
|
// Hash function for scrambling MAC addresses
|
2018-07-15 14:28:05 +02:00
|
|
|
#include "hash.h"
|
2018-07-31 00:00:24 +02:00
|
|
|
#include "senddata.h"
|
2019-01-19 19:54:54 +01:00
|
|
|
#include "cyclic.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "led.h"
|
2018-07-31 00:00:24 +02:00
|
|
|
|
2020-11-01 13:45:17 +01:00
|
|
|
#if (COUNT_ENS)
|
|
|
|
#include "corona.h"
|
|
|
|
#endif
|
|
|
|
|
2018-04-02 01:30:24 +02:00
|
|
|
#define MAC_SNIFF_WIFI 0
|
2018-06-12 19:55:31 +02:00
|
|
|
#define MAC_SNIFF_BLE 1
|
2020-09-01 11:36:41 +02:00
|
|
|
#define MAC_SNIFF_BLE_CWA 2
|
2018-04-02 01:30:24 +02:00
|
|
|
|
2018-09-23 22:12:10 +02:00
|
|
|
uint16_t get_salt(void);
|
2018-07-31 00:00:24 +02:00
|
|
|
uint64_t macConvert(uint8_t *paddr);
|
2020-09-02 18:55:06 +02:00
|
|
|
uint16_t mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type);
|
2018-08-02 12:48:27 +02:00
|
|
|
void printKey(const char *name, const uint8_t *key, uint8_t len, bool lsb);
|
2018-06-09 22:28:20 +02:00
|
|
|
|
2020-09-01 11:36:41 +02:00
|
|
|
#endif
|