ESP32 Wi-Fi Signal Strength: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
(Created page with " refernce / source: https://randomnerdtutorials.com/esp32-cam-connect-external-antenna/ <pre> #include "WiFi.h" const char* ssid = "REPLACE_WITH_YOUR_SSID"; const char* password = "REPLACE_WITH_YOUR_PASSWORD"; void setup(){ Serial.begin(115200); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected."); delay(100); } void loop(){ Serial.print...")
 
No edit summary
 
Line 29: Line 29:


</pre>
</pre>
[[category:script]]

Latest revision as of 21:06, 9 May 2023

refernce / source: https://randomnerdtutorials.com/esp32-cam-connect-external-antenna/



#include "WiFi.h"

const char* ssid     = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";

void setup(){
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected.");
  delay(100);
}

void loop(){
  Serial.print("RSSI: ");
  Serial.println(WiFi.RSSI());
  delay(2000);
}