设备上电审核前上报的基础信息表管理接口

This commit is contained in:
mi9688
2024-12-05 15:53:52 +08:00
parent 79cdd499f7
commit 6aaed01915
21 changed files with 627 additions and 61 deletions

View File

@ -27,6 +27,8 @@ public enum TopicType {
SERVICE_INVOKE_REPLY(0,8,"/service/reply", "订阅功能调用返回结果"),
FIRMWARE_UPGRADE_REPLY(0,9,"/upgrade/reply", "订阅设备OTA升级结果"),
MESSAGE_POST(0,26,"/message/post","订阅设备上报消息"),
//测试主题
TEST_TOPIC(0,27,"/topic/test","测试主题"),
/*** 通用设备订阅主题(平台下发)***/
FUNCTION_GET(1,17,"/function/get", "发布功能"),

View File

@ -157,7 +157,7 @@ public class TopicsUtils {
public String parseTopicName(String topic) {
String[] values = topic.split("/");
if (values.length >2){
return "/"+ values[3] + "/" + values[4];
return "/"+ values[2] + "/" + values[3];
}else {
return null;
}