User Tools

Site Tools


latinet:unicaes:workshops:communication-23

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
latinet:unicaes:workshops:communication-23 [2023/08/30 20:43] jan.sonntaglatinet:unicaes:workshops:communication-23 [2024/03/23 19:02] (current) – ↷ 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, allowing your devices to seamlessly interact with the digital world.+Next, we'll take a closer look at connecting the ESP8266 to WiFi. This step is crucial for enabling wireless communication, allowing your devices to seamlessly interact with the digital world.fi
  
-<file ino wifi-http-api-example.ino>+<file c++ wifi-http-api-example.ino>
 #include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
 #include <WiFiClientSecure.h> #include <WiFiClientSecure.h>
Line 80: Line 80:
 </file> </file>
  
-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:start|HSRW Weather Station at Campus Kamp-Lintfort]]+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:kamp-lintfort:start|HSRW Weather Station at Campus Kamp-Lintfort]]
  
 ===== 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, we encourage you to take it a step further by incorporating one of the sensors available to you. Stepping ahead, you'll have the chance to implement your first MQTT publish from the ESP8266. While the following example provides a static demonstration, we encourage you to take it a step further by incorporating one of the sensors available to you.
  
-<file ino mqtt-publish.ino>+PubSubClient Library: [[https://github.com/knolleary/pubsubclient|PubSubClient by knolleary]] 
 + 
 +<file c++ mqtt-publish.ino>
 /* /*
  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.
  
-<file ino mqtt-subscribe-example.ino>+<file c++ mqtt-subscribe-example.ino>
 /* /*
  Basic ESP8266 MQTT example  Basic ESP8266 MQTT example
latinet/unicaes/workshops/communication-23.1693421038.txt.gz · Last modified: 2023/08/30 20:43 by jan.sonntag