-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
168 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
menu "Sniffer Configuration" | ||
config BLINK_GPIO_NUM | ||
int "The GPIO number that is blinked" | ||
range 0 33 | ||
default 2 | ||
help | ||
"No help :)" | ||
|
||
config BLINK_SPEED | ||
int "The time between blinks in milliseconds" | ||
range 10 100 | ||
default 25 | ||
help | ||
"No help :)" | ||
|
||
config PACKET_QUEUE_SIZE | ||
int "The size of the packet queue" | ||
range 8 128 | ||
default 32 | ||
help | ||
"The size of the packet queue. Too small of a value may drop some packets." | ||
|
||
config PACKET_QUEUE_TIMEOUT | ||
int "The timeout in ms when inserting into the queue" | ||
range 1 100 | ||
default 10 | ||
help | ||
"The timeout in milliseconds of trying to insert a packet into the queue. A too small or too big value may drop packets." | ||
|
||
config CHANNEL_SWITCHER_FREQUENCY | ||
int "The time in milliseconds between channel switches" | ||
range 10 1000 | ||
default 100 | ||
help | ||
"No help :)" | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
#pragma once | ||
|
||
#include <esp_wifi.h> | ||
|
||
static void packet_callback(void *buf, wifi_promiscuous_pkt_type_t type); | ||
|
||
static void task_blinker(void *parameters); | ||
|
||
static void task_channel_hopper(void *parameters); | ||
|
||
static void setup_blinker(); | ||
|
||
static void setup_wifi(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters