ESP32-PaxCounter/include/macsniff.h

26 lines
587 B
C
Raw Normal View History

2018-07-17 15:15:58 +02:00
#ifndef _MACSNIFF_H
#define _MACSNIFF_H
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-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-11-07 22:32:36 +01:00
esp_err_t macQueueInit(void);
void mac_process(void *pvParameters);
void IRAM_ATTR mac_add(uint8_t *paddr, int8_t rssi, snifftype_t sniff_type);
2020-11-08 22:14:28 +01:00
uint16_t mac_analyze(MacBuffer_t MacBuffer);
2018-08-02 12:48:27 +02:00
void printKey(const char *name, const uint8_t *key, uint8_t len, bool lsb);
2020-09-01 11:36:41 +02:00
#endif