esp32_marauder/WiFiScan.cpp
// Function for running probe request scan
Function for running probe request scan
Function for running probe request scan
void WiFiScan::RunProbeScan(uint8_t scan_mode, uint16_t color)
{
  sd_obj.openCapture("probe");
  display_obj.TOP_FIXED_AREA_2 = 48;
  display_obj.tteBar = true;
  display_obj.print_delay_1 = 15;
  display_obj.print_delay_2 = 10;
  display_obj.initScrollValues(true);
  tft.setTextWrap(false);
  tft.setTextColor(TFT_BLACK, color);
  tft.fillRect(0,16,240,16, color);
  tft.drawCentreString(" Probe Request Sniffer ",120,16,2);
  display_obj.touchToExit();
  tft.setTextColor(TFT_GREEN, TFT_BLACK);
  display_obj.setupScrollArea(display_obj.TOP_FIXED_AREA_2, BOT_FIXED_AREA);
  wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
  esp_wifi_init(&cfg);
  esp_wifi_set_storage(WIFI_STORAGE_RAM);
  esp_wifi_set_mode(WIFI_MODE_NULL);
  esp_wifi_start();
  esp_wifi_set_promiscuous(true);
  esp_wifi_set_promiscuous_filter(&filt);
  esp_wifi_set_promiscuous_rx_cb(&probeSnifferCallback);
  esp_wifi_set_channel(set_channel, WIFI_SECOND_CHAN_NONE);
  initTime = millis();
}
void WiFiScan :: RunProbeScan ( uint8_t scan_mode , uint16_t color ) { sd_obj . openCapture ( " " ) ; display_obj . TOP_FIXED_AREA_2 = 48 ; display_obj . tteBar = true ; display_obj . print_delay_1 = 15 ; display_obj . print_delay_2 = 10 ; display_obj . initScrollValues ( true ) ; tft . setTextWrap ( false ) ; tft . setTextColor ( TFT_BLACK , color ) ; tft . fillRect ( 0 , 16 , 240 , 16 , color ) ; tft . drawCentreString ( " " , 120 , 16 , 2 ) ; display_obj . touchToExit ( ) ; tft . setTextColor ( TFT_GREEN , TFT_BLACK ) ; display_obj . setupScrollArea ( display_obj . TOP_FIXED_AREA_2 , BOT_FIXED_AREA ) ; wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT ( ) ; esp_wifi_init ( & cfg ) ; esp_wifi_set_storage ( WIFI_STORAGE_RAM ) ; esp_wifi_set_mode ( WIFI_MODE_NULL ) ; esp_wifi_start ( ) ; esp_wifi_set_promiscuous ( true ) ; esp_wifi_set_promiscuous_filter ( & filt ) ; esp_wifi_set_promiscuous_rx_cb ( & probeSnifferCallback ) ; esp_wifi_set_channel ( set_channel , WIFI_SECOND_CHAN_NONE ) ; initTime = millis ( ) ; }
Function for running probe request scan
Function for running probe request scan
//display_obj.clearScreen();