UWB-Tracking
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
mqtt-client.h File Reference
#include <WiFi.h>
#include <Wire.h>
#include <PubSubClient.h>
#include <Arduino.h>
#include <vector>

Go to the source code of this file.

Classes

class  MqttClient
 A class for managing MQTT communication. More...
 

Namespaces

namespace  mqtt
 

Functions

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...
 

Function Documentation

◆ 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
topicThe topic where the message is received.
payloadPointer to the first byte of the payload.
lengthThe length of the message.