Skip to content

Commit

Permalink
add:mqtt添加 pong消息注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Sep 25, 2024
1 parent b7dfde6 commit af9f1dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/network/libemqtt/luat_lib_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ event可能出现的值有
-- dup 取值范围 0,1
sent -- 发送完成, qos0会马上通知, qos1/qos2会在服务器应答会回调, data为消息id
disconnect -- 服务器断开连接,网络问题或服务器踢了客户端,例如clientId重复,超时未上报业务数据
pong -- 收到服务器心跳应答,没有附加数据
]]
*/
static int l_mqtt_on(lua_State *L) {
Expand Down

0 comments on commit af9f1dc

Please sign in to comment.