... | @@ -109,6 +109,18 @@ void loop() { |
... | @@ -109,6 +109,18 @@ void loop() { |
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
|
|
This is one way to set up your WiFi connection. There are several ways to make your ESP an IoT device. If your simulated ESP32 is not connecting to the WiFi, you might be facing specific circumstances while using Wokwi. The simulation environment provides you with an access point (SSID and PWD) and can only connect to the internet via this AP if your PC has internet access.
|
|
|
|
You can have a look into the documentation or simply replace one line of code:
|
|
|
|
|
|
|
|
```C++
|
|
|
|
WiFi.begin("Wokwi-GUEST", "", 6);
|
|
|
|
```
|
|
|
|
|
|
|
|
# Communication via MQTT
|
|
|
|
Im industriellen Kontext wird oftmals das MQTT_Protokoll zur Kommunikattion von entetitäten genutzt.
|
|
|
|
Es können Nachrrichten sauber strukturiert und effizient destributiert werden.
|
|
|
|
Falls Sie noch nie etwas davon gehört haben können Sie ein paar Basics auf unserer Grundlagen Seite durcharbeiten. Zumindest Grundlegende Verfahren und Unterschiede zu bspw. REST sollten Sie kennen, um Vorteile von MQTT in der Praxis nachvollziehen zu können.
|
|
|
|
// Link zum MQTT-Page
|
|
|
|
|
|
|
|
|
|
|
|
|
... | | ... | |