Function paho_mqtt3as_sys::MQTTAsync_waitForCompletion
[−]
[src]
pub unsafe extern "C" fn MQTTAsync_waitForCompletion(
handle: MQTTAsync,
token: MQTTAsync_token,
timeout: c_ulong
) -> c_int
Waits for a request corresponding to a token to complete.
@param handle A valid client handle from a successful call to MQTTAsync_create(). @param token An ::MQTTAsync_token associated with a request. @param timeout the maximum time to wait for completion, in milliseconds @return ::MQTTASYNC_SUCCESS if the request has been completed in the time allocated, ::MQTTASYNC_FAILURE if not.