latinet:unicaes:workshops:communication-23
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
latinet:unicaes:workshops:communication-23 [2023/08/30 20:43] – jan.sonntag | latinet:unicaes:workshops:communication-23 [2024/03/23 19:02] – ↷ Links adapted because of a move operation 47.128.112.114 | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== 2. ESP8266 and WiFi ===== | ===== 2. ESP8266 and WiFi ===== | ||
- | Next, we'll take a closer look at connecting the ESP8266 to WiFi. This step is crucial for enabling wireless communication, | + | Next, we'll take a closer look at connecting the ESP8266 to WiFi. This step is crucial for enabling wireless communication, |
- | < | + | < |
#include < | #include < | ||
#include < | #include < | ||
Line 80: | Line 80: | ||
</ | </ | ||
- | In this example code, you will first of all connect to a WiFi network and then try to access a predefined API. This API is the root of our public weather station API. You can find out more about the project right here: [[weather_station: | + | In this example code, you will first of all connect to a WiFi network and then try to access a predefined API. This API is the root of our public weather station API. You can find out more about the project right here: [[eolab:weather_station: |
===== 3. Our first MQTT Publish ===== | ===== 3. Our first MQTT Publish ===== | ||
Stepping ahead, you'll have the chance to implement your first MQTT publish from the ESP8266. While the following example provides a static demonstration, | Stepping ahead, you'll have the chance to implement your first MQTT publish from the ESP8266. While the following example provides a static demonstration, | ||
- | < | + | PubSubClient Library: [[https:// |
+ | |||
+ | < | ||
/* | /* | ||
Basic ESP8266 MQTT example | Basic ESP8266 MQTT example | ||
Line 194: | Line 196: | ||
Now, let's move on to an essential aspect of our workshop. We'll guide you through the process of subscribing to an MQTT topic. This step is a practical gateway to interactive IoT applications. You'll learn how to exchange MQTT messages between devices, potentially triggering actions like LED reactions or serial outputs. While we'll provide initial guidance, feel free to explore further and experiment with this dynamic feature. | Now, let's move on to an essential aspect of our workshop. We'll guide you through the process of subscribing to an MQTT topic. This step is a practical gateway to interactive IoT applications. You'll learn how to exchange MQTT messages between devices, potentially triggering actions like LED reactions or serial outputs. While we'll provide initial guidance, feel free to explore further and experiment with this dynamic feature. | ||
- | < | + | < |
/* | /* | ||
Basic ESP8266 MQTT example | Basic ESP8266 MQTT example |
latinet/unicaes/workshops/communication-23.txt · Last modified: 2024/09/10 20:39 by harley.lara