esp32_marauder/WiFiScan.cpp
// Function to prepare for beacon spam
Function to prepare for beacon spam
Function to prepare for beacon spam
void WiFiScan::RunBeaconSpam(uint8_t scan_mode, uint16_t color)
{
  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(" Beacon Spam Random ",120,16,2);
  display_obj.touchToExit();
  tft.setTextColor(TFT_GREEN, TFT_BLACK);
  packets_sent = 0;
  WiFi.mode(WIFI_AP_STA);
  esp_wifi_start();
  esp_wifi_set_promiscuous_filter(NULL);
  esp_wifi_set_promiscuous(true);
  esp_wifi_set_max_tx_power(78);
  initTime = millis();
}
void WiFiScan :: RunBeaconSpam ( uint8_t scan_mode , uint16_t color ) { 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 ) ; packets_sent = 0 ; WiFi . mode ( WIFI_AP_STA ) ; esp_wifi_start ( ) ; esp_wifi_set_promiscuous_filter ( NULL ) ; esp_wifi_set_promiscuous ( true ) ; esp_wifi_set_max_tx_power ( 78 ) ; initTime = millis ( ) ; }
Function to prepare for beacon spam
Function to prepare for beacon spam
//Serial.println("Beacon Spam..."); //display_obj.clearScreen(); //esp_wifi_set_mode(WIFI_MODE_STA); //display_obj.clearScreen(); //Serial.println("End of func");