|
| | CallbackMQTTDevice (Handler handler) |
| | Constructs a CallbackMQTTDevice with the specified message handler.
|
| |
| | MQTTDevice () |
| | Constructs a new MQTTDevice instance.
|
| |
| virtual | ~MQTTDevice () |
| | Virtual destructor that handles cleanup and unregistration from MQTTKit.
|
| |
| const String & | getDeviceId () const |
| | Gets the device identifier.
|
| |
| const String & | getOwnerId () const |
| | Gets the owner identifier.
|
| |
| const String & | subscribe (const String &topic) |
| | Subscribes to a specific MQTT topic.
|
| |
| const String & | subscribeDevice (const String &subTopic) |
| | Subscribes to a device-specific subtopic.
|
| |
| const String & | subscribeGroup (const String &groupId, const String &subTopic) |
| | Subscribes to a group-specific subtopic.
|
| |
| bool | unsubscribe (const String &topic) |
| | Unsubscribes from a specific topic.
|
| |
| virtual void | syncSubscriptions ()=0 |
| | Reconstructs subscriptions after reconnection or credential changes.
|
| |
| void | unsubscribeFromAll () |
| | Unsubscribes from all subscribed topics.
|
| |
| bool | isSubscribed (const String &topic) |
| | Checks if the device is subscribed to a given topic.
|
| |
| bool | isTopicMatch (const String &storedTopic, const String &incomingTopic) const |
| | Determines if a stored topic matches an incoming topic string using MQTT wildcards.
|
| |
| void | publish (const String &topic, const Bytes &payload, bool retained=false, bool sign=false) |
| | Publishes a message to a specific topic.
|
| |
| void | publishDevice (const String &subTopic, const Bytes &payload, bool retained=false, bool sign=false) |
| | Publishes a message to a device-specific subtopic.
|
| |
| void | publishGroup (const String &groupId, const String &subTopic, const Bytes &payload, bool retained=false, bool sign=false) |
| | Publishes a message to a group-specific subtopic.
|
| |
| void | publishEmptyDevice (const String &subTopic) |
| | Publishes an empty message to a device-specific subtopic with retained flag set.
|
| |