coreMQTT v2.3.1
MQTT 3.1.1 Client Library
 
Loading...
Searching...
No Matches
MQTT_Ping
MQTTStatus_t MQTT_Ping(MQTTContext_t *pContext)
Sends an MQTT PINGREQ to broker.
Definition: core_mqtt.c:2922
MQTTStatus_t
Return codes from MQTT functions.
Definition: core_mqtt_serializer.h:87
A struct representing an MQTT connection.
Definition: core_mqtt.h:173

Sends an MQTT PINGREQ to broker.

Parameters
[in]pContextInitialized and connected MQTT context.
Returns
MQTTNoMemory if pBuffer is too small to hold the MQTT packet; MQTTBadParameter if invalid parameters are passed; MQTTSendFailed if transport write failed; MQTTSuccess otherwise.