amqtt/docs/references/common.md

22 wiersze
526 B
Markdown

2025-05-21 13:53:46 +00:00
# Common API
2015-11-12 21:57:00 +00:00
This document describes `aMQTT` common API both used by [MQTT Client](client.md) and [Broker](broker.md).
2015-11-12 21:57:00 +00:00
2025-05-21 13:53:46 +00:00
## Reference
2015-11-12 21:57:00 +00:00
2025-05-21 13:53:46 +00:00
### ApplicationMessage
2015-11-12 21:57:00 +00:00
2025-05-21 13:53:46 +00:00
The `amqtt.session` module provides the following message classes:
2015-11-12 21:57:00 +00:00
2025-05-21 13:53:46 +00:00
#### ApplicationMessage
2015-11-12 21:57:00 +00:00
2025-05-21 13:53:46 +00:00
Base class for MQTT application messages.
2015-11-12 21:57:00 +00:00
2025-05-21 13:53:46 +00:00
#### IncomingApplicationMessage
Inherits from ApplicationMessage. Represents messages received from MQTT clients.
#### OutgoingApplicationMessage
Inherits from ApplicationMessage. Represents messages to be sent to MQTT clients.