Project

General

Profile

Feature #3435

mqtt broker之nanomq相关

Added by jiawei mao 5 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/27/2024
Due date:
% Done:

0%

Estimated time:
Defect version:

Description

为了应对检测项,由nanomq来平替Emqx完成iot相关的检测。

History

#1

Updated by jiawei mao 5 months ago

  • Status changed from New to In Progress

增加了api:/api/v4/puback
作用:实时切换qos1消息能返回Puback和不返回Puback

使用方法1:
接口:http://IP:8081/api/v4/puback
方法:Get
Auth:
BasicAuth: admin/public
Body: {
    "puback": 0
}
说明:0表示不回复ack; 1表示会回复ack;

使用方法2:
curl -i --basic -u admin:public -X GET "http://IP:8081/api/v4/puback" -d '{"puback":1}'

上述两种方法,调用成功会回复: {
    "code": 0
}

#2

Updated by jiawei mao 5 months ago

20240701:
1.增加功能:取消回复时,设置延时后恢复回复;
2.在现有基础上,增加逻辑:
如果传{"puback":0, "delay": 5},则表示设置不回复,5s后恢复回复;
如果传{"puback":0},则表示设置不回复,60s(默认值)后恢复回复;
如果传{"puback":1},则立即恢复回复;
如果传{"puback":1, "delay": 5},则立即恢复回复,delay不生效;

#3

Updated by jiawei mao 4 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF