#include <WiFi.h>
#include <Wire.h>
#include <PubSubClient.h>
#include <Arduino.h>
#include <vector>
Go to the source code of this file.
|
void | subscribe_callback (char *topic, byte *payload, unsigned int length) |
| Callback function for MQTT subscriptions, called when a message arrives. simply prints the message to the terminal. More...
|
|
◆ subscribe_callback()
void subscribe_callback |
( |
char * |
topic, |
|
|
byte * |
payload, |
|
|
unsigned int |
length |
|
) |
| |
Callback function for MQTT subscriptions, called when a message arrives. simply prints the message to the terminal.
- Parameters
-
topic | The topic where the message is received. |
payload | Pointer to the first byte of the payload. |
length | The length of the message. |