Project

General

Profile

Feature #3474

nanomq增加修改发布的类型为非法类型的接口

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

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
09/02/2024
Due date:
% Done:

0%

Estimated time:
Defect version:

Description

说明: 在测试平台中,测试物联终端的控制报文扰动需要nanomq发布报文具有未定义的报文头

修改: 将发布报文的头类型修改为未定义的类型,修改的地方为将Qos1和Qos2的两位都填充上
1,该类型是未定义的,即0x32修改为0x36,即0x30修改为0x36等等。

具体描述:
请求:
接口:http://192.168.2.110:8081/api/v4/mqtypechange
方法:Get
Auth:basic Auth,admin:public
Body: {
"change": 1,          
"delay": 60
}
说明:
change: 1表示publish的报头类型会修改为0x36; 0表示不会修改类型;
delay:为修改的持续时间,默认60s;

举例说明:
如果传{"change":1, "delay": 5},则表示设置会修改类型,5s后恢复不会修改类型;
如果传{"change":1},则表示设置会修改类型,60s(默认值)后恢复;
如果传{"change":0},则不会修改类型;
如果传{"change":0, "delay": 5},则不会修改类型,delay不生效;

正确回复: {
    "code": 0
}

History

#1

Updated by jiawei mao 4 months ago

  • Status changed from New to Resolved
#2

Updated by xiangyang li 3 months ago

  • Target version set to TestPlatform v1.0.0

Also available in: Atom PDF