Difference between revisions of "Smart electronics"

From Interaction Station Wiki
Jump to navigation Jump to search
(Created page with "Category:2024")
 
Line 1: Line 1:
 
[[Category:2024]]
 
[[Category:2024]]
 +
 +
== ESP Board manager ==
 +
 +
<code>https://espressif.github.io/arduino-esp32/package_esp32_index.json</code>
 +
 +
== Helper functions ==
 +
 +
Connect to WiFI
 +
<code lang="cpp">
 +
void connectWifi() {
 +
  Serial.print("Connecting to wifi...");
 +
  while (WiFi.status() != WL_CONNECTED) {
 +
    Serial.print(".");
 +
    delay(1000);
 +
  }
 +
  Serial.println("\nWifi connected!");
 +
  delay(1000);
 +
}
 +
</code>

Revision as of 21:34, 3 November 2024


ESP Board manager

https://espressif.github.io/arduino-esp32/package_esp32_index.json

Helper functions

Connect to WiFI void connectWifi() {

 Serial.print("Connecting to wifi...");
 while (WiFi.status() != WL_CONNECTED) {
   Serial.print(".");
   delay(1000);
 }
 Serial.println("\nWifi connected!");
 delay(1000);

}