User Tools

Site Tools


amc2020:group_n:wifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
amc2020:group_n:wifi [2020/07/29 19:40] – [3.1 Code] jonas001amc2020:group_n:wifi [2021/08/24 17:35] (current) – external edit 127.0.0.1
Line 13: Line 13:
 ===== 1. About MQTT ===== ===== 1. About MQTT =====
  
-MQTT stands for Message Queuing Telemetry Transport and is publish-subscribe network protocol for transporting messages between different devices. It was first developed in 1999 and is very popular for IoT (Internet of Things) applications.+MQTT stands for Message Queuing Telemetry Transport and is publish-subscribe network protocol for transporting messages between different devices. It was first developed in 1999 and is very popular for IoT (Internet of Things) applications.
  
 The core of an MQTT network is a server also called MQTT broker. Other devices, called clients, can connect through WiFi to the broker and publish or subscribe to certain topics. The broker receives the messages that are published by the clients and sorts them by their topics. Clients can also subscribe to topics; if a new message is published under a certain topic, the broker redirects this message to all clients that are subscribed to that topic. The core of an MQTT network is a server also called MQTT broker. Other devices, called clients, can connect through WiFi to the broker and publish or subscribe to certain topics. The broker receives the messages that are published by the clients and sorts them by their topics. Clients can also subscribe to topics; if a new message is published under a certain topic, the broker redirects this message to all clients that are subscribed to that topic.
Line 211: Line 211:
         </li>         </li>
         <li>         <li>
-            For the ESP32, the password and the SSID of the local WiFi network need to be given as pointers of the type <b><font face="Courier New"><font style="color:#0098A3">const char</font></font></b>. The asterisks need to be replaced by the actual password and SSID.+            The password and the SSID of the local WiFi network that the ESP32 connects to are defined here. The asterisks need to be replaced by the actual SSID/password for the sketch to work.
         </li>         </li>
         <li>         <li>
Line 298: Line 298:
         </li>         </li>
         <li>         <li>
-            The function <b><font face="Courier New">mqttClient.<font style="color:#CD5307">connect</font>()</font></b> establishes the connection with the broker. If the ESP32 is used, it needs <b><font face="Courier New"><font style="color:#008883">"ESP32Client"</font></font></b> as argument.+            The function <b><font face="Courier New">mqttClient.<font style="color:#CD5307">connect</font>()</font></b> establishes the connection with the broker. If the ESP32 is used, <b><font face="Courier New"><font style="color:#008883">"ESP32Client"</font></font></b> is used as argument.
         </li>         </li>
         <li>         <li>
amc2020/group_n/wifi.1596044411.txt.gz · Last modified: 2021/08/24 17:34 (external edit)