typedef int MQTTClient_deliveryToken A value representing an MQTT message. A delivery token is returned to the client application when a message is published. The token can then be used to check that the message was successfully delivered to its destination (see MQTTClient_publish(), MQTTClient_publishMessage(), MQTTClient_deliveryComplete(), MQTTClient_waitForCompletion() and MQTTClient_getPendingDeliveryTokens()).
时间: 2024-03-29 20:41:49 浏览: 198
这段描述是关于一个名为MQTTClient_deliveryToken的类型定义的说明。MQTTClient_deliveryToken是一个表示MQTT消息的值。在MQTT协议中,当客户端发布一条消息时,会返回一个传递令牌(delivery token)给客户端应用程序。传递令牌可以用来检查消息是否成功地传递到其目的地。可以通过调用MQTTClient_publish()、MQTTClient_publishMessage()、MQTTClient_deliveryComplete()、MQTTClient_waitForCompletion()和MQTTClient_getPendingDeliveryTokens()等函数来使用传递令牌。
阅读全文