|
| | LispDevice () |
| | Constructs a LispDevice instance.
|
| |
| virtual void | syncSubscriptions () override |
| | Sets up MQTT topic subscriptions for the device.
|
| |
| unLisp & | getLisp () |
| | Provides access to the unLisp interpreter instance.
|
| |
| void | setEventInterceptor (LispEventInterceptor interceptor) |
| |
| void | publishLispEvent (const String &eventID, int32_t value) |
| |
| void | runStoredCode () |
| | Loads and executes previously stored code from persistent storage.
|
| |
| bool | store () |
| | Stores the current script state to persistent storage.
|
| |
| virtual void | onEventReceived (unsigned int topic, int msg) override |
| | Processes events received from the unLisp interpreter.
|
| |
| virtual void | handle (const String &topic, const Bytes &payload) override |
| | Processes MQTT messages received on subscribed topics.
|
| |
| void | handleScript (const Bytes &payload) |
| | Processes script payloads received via MQTT.
|
| |
| void | handleEvent (const Bytes &payload) |
| | Processes event payloads received via MQTT.
|
| |
| | 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.
|
| |
| 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.
|
| |
| | CBORStorage (const String &path) |
| | Constructs a new CBORStorage object.
|
| |
| virtual | ~CBORStorage () |
| | Virtual destructor.
|
| |
| CBORObject & | object () |
| | Get access to the underlying CBORObject.
|
| |
| virtual bool | restore () override |
| | Restore the CBOR object from the filesystem.
|
| |
| virtual bool | clean () override |
| | Clean the CBOR object and remove the storage file.
|
| |
| | Storage (const String &path) |
| | Constructs a Storage object for a specific file.
|
| |
| virtual | ~Storage () |
| | Destructor.
|
| |
| virtual | ~EventListener ()=default |
| | Virtual destructor.
|
| |
| virtual type_id | getTypeId () const override |
| | Get the type ID of this class for RTTI.
|
| |
| EventListener * | listenToEvent (unsigned int topic) |
| | Subscribe to events of a specific topic.
|
| |
| EventListener * | stopListeningToEvent (unsigned int topic) |
| | Unsubscribe from events of a specific topic.
|
| |
| bool | isListeningToEvent (unsigned int topic) |
| | Check if this listener is subscribed to a specific topic.
|
| |
| virtual | ~EventListener ()=default |
| | Virtual destructor.
|
| |
| virtual type_id | getTypeId () const override |
| | Get the type ID of this class for RTTI.
|
| |
| EventListener * | listenToEvent (unsigned int topic) |
| | Subscribe to events of a specific topic.
|
| |
| EventListener * | stopListeningToEvent (unsigned int topic) |
| | Unsubscribe from events of a specific topic.
|
| |
| bool | isListeningToEvent (unsigned int topic) |
| | Check if this listener is subscribed to a specific topic.
|
| |
| virtual | ~EventEmitter ()=default |
| | Virtual destructor to ensure proper cleanup of derived classes.
|
| |
| void | emitEvent (unsigned int topic, int msg) |
| | Emits an event to all registered event buses.
|
| |
| virtual | ~EventEmitter ()=default |
| | Virtual destructor to ensure proper cleanup of derived classes.
|
| |
| void | emitEvent (unsigned int topic, int msg) |
| | Emits an event to all registered event buses.
|
| |
| virtual | ~EventEntity () |
| | Destructor - disconnects from all connected EventBus instances.
|
| |
| bool | sendDataToChannel (T_topic channel, T_data data) |
| | Sends data to a specific channel on all connected EventBus instances.
|
| |
| void | receiveDataFromChannel (T_topic channel, DataChannelCallback callback) |
| | Receives data from a specific channel on all connected EventBus instances.
|
| |