/* Arduino Uno R4 Wifi Network Scanner by learnelectronics 12 FEB 2024 based on code writtern & modified by: created 13 July 2010 by dlf (Metodo2 srl) modified 21 Junn 2012 by Tom Igoe and Jaymes Dec */ #include "ArduinoGraphics.h" #include "Arduino_LED_Matrix.h" #include ArduinoLEDMatrix matrix; void setup() { //Initialize serial and wait for port to open: Serial.begin(9600); matrix.begin(); matrix.beginDraw(); matrix.stroke(0xFFFFFFFF); // add some static text // will only show "UNO" (not enough space on the display) const char text[] = "*|*"; matrix.textFont(Font_4x6); matrix.beginText(0, 1, 0xFFFFFF); matrix.println(text); matrix.endText(); matrix.endDraw(); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } // check for the WiFi module: if (WiFi.status() == WL_NO_MODULE) { Serial.println("Communication with WiFi module failed!"); // don't continue while (true); } String fv = WiFi.firmwareVersion(); if (fv < WIFI_FIRMWARE_LATEST_VERSION) { Serial.println("Please upgrade the firmware"); } } void loop() { byte mac[6]; // scan for existing networks: Serial.println("Scanning available networks..."); listNetworks(); WiFi.macAddress(mac); Serial.println(); Serial.print("Your MAC Address is: "); printMacAddress(mac); delay(10000); } void listNetworks() { // scan for nearby networks: Serial.println("** Scan Networks **"); int numSsid = WiFi.scanNetworks(); if (numSsid == -1) { Serial.println("Couldn't get a WiFi connection"); while (true); } // print the list of networks seen: Serial.print("number of available networks:"); Serial.println(numSsid); // print the network number and name for each network found: for (int thisNet = 0; thisNet < numSsid; thisNet++) { Serial.print(thisNet); Serial.print(") "); Serial.print(WiFi.SSID(thisNet)); Serial.print(" Signal: "); Serial.print(WiFi.RSSI(thisNet)); Serial.print(" dBm"); Serial.print(" Encryption: "); printEncryptionType(WiFi.encryptionType(thisNet)); } // Make it scroll! char text[] = "xxxxxxxxxxxx"; String gazinda = String(WiFi.SSID(0)); gazinda.toCharArray(text, 13); matrix.beginDraw(); matrix.stroke(0xFFFFFFFF); matrix.textScrollSpeed(50); // add the text matrix.textFont(Font_5x7); matrix.beginText(0, 1, 0xFFFFFF); matrix.println(text); matrix.endText(SCROLL_LEFT); matrix.endDraw(); } void printEncryptionType(int thisType) { // read the encryption type and print out the name: switch (thisType) { case ENC_TYPE_WEP: Serial.println("WEP"); break; case ENC_TYPE_WPA: Serial.println("WPA"); break; case ENC_TYPE_WPA2: Serial.println("WPA2"); break; case ENC_TYPE_WPA3: Serial.print("WPA3"); break; case ENC_TYPE_NONE: Serial.println("None"); break; case ENC_TYPE_AUTO: Serial.println("Auto"); break; case ENC_TYPE_UNKNOWN: default: Serial.println("Unknown"); break; } } void printMacAddress(byte mac[]) { for (int i = 5; i >= 0; i--) { if (mac[i] < 16) { Serial.print("0"); } Serial.print(mac[i], HEX); if (i > 0) { Serial.print(":"); } } Serial.println(); }
@kalidabdul68628 ай бұрын
Hello For the hanging c , just put some spaces before and after the string.
@mschwage8 ай бұрын
Step 1: hit the like button. Step 2: enjoy the video. Thanks!!!! Another awesome video.
@learnelectronics8 ай бұрын
Thank you, you just made my day!
@shagreobe8 ай бұрын
Can't wait to get an r4
@warrenking18158 ай бұрын
Neat, a scanner for wifi
@EdSym18 ай бұрын
AAs mentioned earlier add some white space. "String gazinda = String(WiFi.SSID(0)) + " ";"
@diptimanbora25128 ай бұрын
I should’ve waited for R4 to come out..
@PatricksDIY5 ай бұрын
I mean I wouldn't call that "hacking" every phone scans wi-fi and provides the name and the signal.
@Keeping_IT_Simple8 ай бұрын
Being lazy as I am , is there a link to your code , so I don't have to type in the code please?
@learnelectronics8 ай бұрын
Yes, I'm sorry. I'll pin it to a post here
@Keeping_IT_Simple8 ай бұрын
@@learnelectronics absolutely no need for apologies. Thankyou for this code & excellent video
@blazingtrailsrc3968 ай бұрын
i want one that displays the login info of the networks lmao
@bblod48968 ай бұрын
Honey trap? ☮️ brother.
@learnelectronics8 ай бұрын
A honey trap is a router that is connected to nothing.