ESP32-PaxCounter/include/macsniff.h

20 lines
445 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"
2018-12-22 14:37:47 +01:00
#include "cyclic.h"
2018-07-31 00:00:24 +02:00
2018-04-02 01:30:24 +02:00
#define MAC_SNIFF_WIFI 0
#define MAC_SNIFF_BLE 1
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);
2018-07-31 10:05:32 +02:00
bool 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);
#endif