class documentation
Handler registering oneM2M topics and handling resceived requests.
| Method | __init__ |
Initialize the MQTTClientHandler. |
| Method | logging |
Forwarding log events to the CSE's log system. |
| Method | on |
When connected to a broker then register the topics the CSE listens to. |
| Method | on |
Callback when disconnecting from a broker. |
| Method | on |
Callback for error handlings. |
| Method | on |
Callback when successfully subscribed to a topic. |
| Method | on |
Callback when successfully unsubscribed from a topic. |
| Class Variable | __slots__ |
Slots for the MQTTClientHandler. |
| Class Variable | cse |
Injected function to shut down the CSE. |
| Class Variable | request |
Injected RequestManager instance. |
| Class Variable | security |
Injected SecurityManager instance. |
| Instance Variable | mqtt |
The MQTTClient instance using this handler. |
| Instance Variable | operation |
Operation events. |
| Instance Variable | topic |
Number of elements in the prefix. |
| Method | _handle |
Handling incoming requests is rather generic, since the special handling of some requests, like registration is done later anyway. |
| Method | _registration |
handle an MQTT registration request. |
| Method | _request |
Handle a normal MQTT request. |
| Method | _response |
Receive and handle a 'resp' message. |
Inherited from MQTTHandler:
| Method | on |
This method is called after the `connection` was shut down. |
Initialize the MQTTClientHandler.
| Parameters | |
mqttMQTTClient | The MQTTClient instance using this handler. |
def _handleIncommingRequest(self, connection:
MQTTConnection, topic: str, data: bytes, responseTopicType: str, isRegistration: bool | None = False):
¶
Handling incoming requests is rather generic, since the special handling of some requests, like registration is done later anyway.