Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通过使用 paho(java) 构建我自己的 MQTT 客户端。我想在消息传递时执行相同的操作。所以我想实现MqttCallBack和使用方法deliveryComplete。但是我发现应该将MqttMessageinMqttDeliveryToken设置为null一旦消息已经传递.
MqttCallBack
deliveryComplete
MqttMessage
MqttDeliveryToken
null
所以我的问题是有什么方法可以确定发送了哪条消息。
见:http ://dev.eclipse.org/mhonarc/lists/paho-dev/msg00099.html