MQTT client subscribe API definitions.
More...
Called to send a subscribe message to the broker requesting a subscription to an MQTT topic. This is the outer function which does the validations and calls the internal resubscribe above to perform the actual operation. It is also responsible for client state changes
- Note
- Call is blocking. The call returns after the receipt of the SUBACK control packet.
- Parameters
-
pClient | Reference to the IoT Client |
- Returns
- An IoT Error Type defining successful/failed subscription
Called to send a subscribe message to the broker requesting a subscription to an MQTT topic. This is the outer function which does the validations and calls the internal subscribe above to perform the actual operation. It is also responsible for client state changes
- Note
- Call is blocking. The call returns after the receipt of the SUBACK control packet.
- Parameters
-
pClient | Reference to the IoT Client |
pTopicName | Topic Name to publish to |
topicNameLen | Length of the topic name |
pApplicationHandler_t | Reference to the handler function for this subscription |
- Returns
- An IoT Error Type defining successful/failed subscription