Uniot Core
0.8.1
Loading...
Searching...
No Matches
MQTT Events
Collaboration diagram for MQTT Events:

Namespaces

namespace  uniot
 Contains all classes and functions related to the Uniot Core.
 
namespace  uniot::events
 
namespace  uniot::events::mqtt
 

Detailed Description

This file defines the event topics and messages used throughout the Uniot MQTT subsystem. These events enable communication between MQTT clients, connection managers, and other system components that need to respond to MQTT connectivity changes.

The event system uses FOURCC (Four Character Code) identifiers for efficient event routing and minimal memory footprint. MQTT events are organized into:

Example usage:

// Emit an MQTT connection success event
eventEmitter.emitEvent(events::mqtt::Topic::CONNECTION,
events::mqtt::Msg::SUCCESS);
// Listen for MQTT connection events
eventListener.listenToEvent(events::mqtt::Topic::CONNECTION);