... | @@ -159,7 +159,8 @@ WiFi.begin(SSID,PWD,6); |
... | @@ -159,7 +159,8 @@ WiFi.begin(SSID,PWD,6); |
|
|
|
|
|
> Due to our simulation environment we are going to use the PubSubClient Library, which is accessable in the wokwi-library-Manager
|
|
> Due to our simulation environment we are going to use the PubSubClient Library, which is accessable in the wokwi-library-Manager
|
|
>
|
|
>
|
|
> Additionaly we are adding a function to build our Data-Object. Try to test the following Code and understand the System-Architecture und flow. Hint: chatgpt can help you with that.
|
|
> Additionaly we are adding a function to build our Data-Object. Try to test the following Code and understand the System-Architecture und flow.
|
|
|
|
> :bulb: Hint: chatgpt can help you with that.
|
|
>
|
|
>
|
|
> :bulb: Hint: Add the neccessary Libraries in your simulation-project via the library-manager
|
|
> :bulb: Hint: Add the neccessary Libraries in your simulation-project via the library-manager
|
|
|
|
|
... | @@ -291,7 +292,9 @@ void publishMsgBasket() { |
... | @@ -291,7 +292,9 @@ void publishMsgBasket() { |
|
|
|
|
|
### Node-Red
|
|
### Node-Red
|
|
|
|
|
|
> After the installation of Node-Red, start the program via the Command Line Interface (CLI). To do this, search for "cmd" on your PC and start the terminal. Enter `node-red` and hit enter. After that, Node-Red is running on your PC. Now go to your browser, enter `localhost:1880`, and hit enter. Now you are ready to evaluate your ESP32 data communication.
|
|
> After the [installation](https://nodered.org/docs/getting-started/local) of Node-Red, start the program via the Command Line Interface (CLI). To do this, search for "cmd" on your PC and start the terminal. Enter `node-red` and hit enter. After that, Node-Red is running on your PC. Now go to your browser, enter `localhost:1880`, and hit enter. Now you are ready to evaluate your ESP32 data communication.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
### Steps in Node-Red
|
|
### Steps in Node-Red
|
|
|
|
|
... | @@ -300,6 +303,7 @@ void publishMsgBasket() { |
... | @@ -300,6 +303,7 @@ void publishMsgBasket() { |
|
> * Server: `test.mosquitto.org`
|
|
> * Server: `test.mosquitto.org`
|
|
> * Port: `1883`
|
|
> * Port: `1883`
|
|
> * Protocol: `MQTT V3.1.1`
|
|
> * Protocol: `MQTT V3.1.1`
|
|
|
|
> * Define YOUR Topic you want to subscribe to.
|
|
> * Add a debug node and connect the two blocks.
|
|
> * Add a debug node and connect the two blocks.
|
|
> * Deploy your flow and check the communication.
|
|
> * Deploy your flow and check the communication.
|
|
|
|
|
... | | ... | |