Merge pull request #2137 from gc87/scan-tags

fix(scan): rm tags type field
This commit is contained in:
fengzeroz
2024-07-12 09:42:58 +08:00
committed by GitHub
2 changed files with 3 additions and 9 deletions
+3 -4
View File
@@ -1142,10 +1142,9 @@ typedef struct neu_req_scan_tags {
} neu_req_scan_tags_t;
typedef struct {
char name[NEU_TAG_NAME_LEN];
char id[5 + 1 + NEU_TAG_ADDRESS_LEN]; // ns + ! + address
uint8_t tag;
neu_type_e type;
char name[NEU_TAG_NAME_LEN];
char id[5 + 1 + NEU_TAG_ADDRESS_LEN]; // ns + ! + address
uint8_t tag;
} neu_scan_tag_t;
typedef struct {
-5
View File
@@ -123,11 +123,6 @@ int neu_json_encode_scan_tags_resp(void *json_object, void *param)
.t = NEU_JSON_INT,
.v.val_int = p_tag->tag,
},
{
.name = "type",
.t = NEU_JSON_INT,
.v.val_int = p_tag->type,
},
};
neu_json_encode_array(tag_array, tag_elems,