iotswarm.messaging package
Submodules
iotswarm.messaging.aws module
Contains communication protocols for AWS services.
- class iotswarm.messaging.aws.IotCoreMQTTConnection(endpoint: str, cert_path: str, key_path: str, ca_cert_path: str, client_id: str, *args, port: int | None = None, clean_session: bool = False, keep_alive_secs: int = 1200, inherit_logger: logging.Logger | None = None, **kwargs)
Bases:
MessagingBaseClass
Handles MQTT communication to AWS IoT Core.
iotswarm.messaging.core module
- class iotswarm.messaging.core.MessagingBaseClass(inherit_logger: logging.Logger | None = None)
Bases:
ABC
MessagingBaseClass Base class for messaging implementation
All messaging classes implement this interface.
- abstract property connection
A property for the connection object where messages are sent.
- class iotswarm.messaging.core.MockMessageConnection(inherit_logger: logging.Logger | None = None)
Bases:
MessagingBaseClass
Mock implementation of base class. Consumes send_message calls but does no work.