fix(scan): rm tags type field

This commit is contained in:
gc87
2024-07-11 17:04:22 +08:00
parent 0624437afb
commit b7f6512b84
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,