Uniot Docs
  • Introduction
  • Guides
    • Getting Started
    • Uniot Badge
    • Device Network
  • Foundations
    • Edge Logic Deployment
  • General Concepts
    • Primitives
    • Scripting
  • Platform
    • Dashboard
    • Sandbox
      • Visual Editor
        • Special
        • Logic
        • Math
        • Loops
        • Text
        • Variables
        • Functions
        • Primitives
      • Logger
      • Emulator
      • Control Panel
  • Advanced
    • Uniot Core
      • Scheduler
        • TaskScheduler
        • IExecutor
        • ISchedulerConnectionKit
        • Task
        • SchedulerTask
      • AppKit
        • AppKit
        • LispDevice
        • LispPrimitives
        • TopDevice
      • CBORWrapper
        • CBORObject
        • COSE
        • COSEMessage
        • ICOSESigner
      • Date
        • Date
        • SimpleNTP
      • EventBus
        • EventBus
        • IEventBusConnectionKit
        • DataChannels
        • EventEmitter
        • EventListener
        • EventEntity
        • CallbackEventListener
      • Hardware
        • Button
      • LispWrapper
        • DefaultPrimitives
        • LispHelper
        • PrimitiveExpeditor
        • unLisp
      • MQTTWrapper
        • CallbackMQTTDevice
        • MQTTDevice
        • MQTTKit
        • MQTTPath
      • Network
        • ConfigCaptivePortal
        • NetworkController
        • NetworkScheduler
      • Register
        • GpioRegister
        • ObjectRegister
        • ObjectRegisterRecord
        • Register
        • RegisterManager
        • RegisterManagerProxy
      • Storage
        • CBORStorage
        • CrashStorage
        • Storage
        • WifiStorage
      • Utils
        • Array
        • Bytes
        • ClearQueue
        • IterableQueue
        • LimitedQueue
        • GlobalBufferMemoryManager
        • Map
        • Singleton
        • TypeId
      • Credentials
    • Uniot Lisp
      • Language Description
      • Embedding Instructions
  • API
    • MQTT Convention
Powered by GitBook
On this page
  1. Advanced
  2. Uniot Core

MQTTWrapper

PreviousunLispNextCallbackMQTTDevice

Last updated 4 months ago

The MQTTWrapper module is designed to facilitate seamless integration with MQTT protocols. This module provides a robust and flexible framework for managing MQTT devices, handling message publishing and subscribing. By encapsulating the complexities of MQTT interactions, this module enables to focus on building responsive and scalable applications without worrying about the underlying communication intricacies.

Components

Provides essential functionalities for subscribing to MQTT topics, publishing messages, and handling incoming messages. By encapsulating the core MQTT operations, MQTTDevice simplifies the integration of MQTT communication.

Extends the MQTTDevice class by incorporating callback functionalities, enabling customized handling of incoming MQTT messages. This class allows to define specific behaviors in response to received messages, facilitating dynamic and responsive device interactions.

Manages the construction of MQTT topic paths based on device and owner credentials. The MQTTPath class provides methods to build device-specific, group-specific, and public topic paths, ensuring organized and secure topic management within the MQTT broker.

Manages connections to the MQTT broker, oversees multiple MQTTDevice instances, handles message publishing and subscribing, and ensures secure and efficient communication through COSE message handling. By integrating with network and time synchronization events, MQTTKit provides a robust and reliable foundation for MQTT-based interactions.

MQTTDevice
CallbackMQTTDevice
MQTTPath
MQTTKit