Benutzer-Werkzeuge

Webseiten-Werkzeuge


projects:mh-et_live_esp32_devkit

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
projects:mh-et_live_esp32_devkit [2018/07/05 20:45] cyrusprojects:mh-et_live_esp32_devkit [2018/07/06 16:42] (aktuell) cyrus
Zeile 69: Zeile 69:
 print(i) print(i)
 [(2, 1, 0, 'luxeria.ch', ('95.143.172.238', 80))]</code> [(2, 1, 0, 'luxeria.ch', ('95.143.172.238', 80))]</code>
 +
 +==== C WLAN Hints ====
 +=== Configuring an AP ===
 +Das folgende Code Schnipsel erzeugt einen Access Point mit DHCP (192.168.4.0/24):
 +<code c>#include <WiFi.h>
 +
 +const char *ssid = "ESP32ap";
 +const char *password = "12345678";
 +
 +void setup() {
 +    Serial.begin(115200);
 +    Serial.println();
 +    Serial.print("Configuring access point...");
 +    /* You can remove the password parameter if you want the AP to be open. */
 +    WiFi.softAP(ssid, password);
 +
 +    IPAddress myIP = WiFi.softAPIP();
 +    Serial.print("AP IP address: ");
 +    Serial.println(myIP);
 +}
 +
 +void loop() {
 +}</code>
  
 ===== Resources ===== ===== Resources =====
projects/mh-et_live_esp32_devkit.txt · Zuletzt geändert: 2018/07/06 16:42 von cyrus

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki