mirror of
https://github.com/emqx/neuron.git
synced 2026-10-29 15:09:11 +08:00
Merge pull request #1922 from eeff/v2.7
fix(core): remove NEU_TYPE_TIME and NEU_TYPE_DATA_AND_TIME option
This commit is contained in:
@@ -194,16 +194,13 @@ static inline char *neu_value_str(neu_type_e type, neu_value_u value)
|
||||
snprintf(str, sizeof(str), "type: %s, value: %u", neu_type_string(type),
|
||||
value.boolean);
|
||||
break;
|
||||
case NEU_TYPE_STRING: {
|
||||
case NEU_TYPE_STRING:
|
||||
case NEU_TYPE_TIME:
|
||||
case NEU_TYPE_DATA_AND_TIME: {
|
||||
snprintf(str, sizeof(str), "type: %s, value: %c%c%c",
|
||||
neu_type_string(type), value.str[0], value.str[1],
|
||||
value.str[2]);
|
||||
break;
|
||||
case NEU_TYPE_TIME:
|
||||
case NEU_TYPE_DATA_AND_TIME:
|
||||
snprintf(str, sizeof(str), "type: %s, value: %s", neu_type_string(type),
|
||||
value.str);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
||||
+1
-3
@@ -150,9 +150,7 @@ int neu_datatag_parse_addr_option(const neu_datatag_t * datatag,
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NEU_TYPE_STRING:
|
||||
case NEU_TYPE_TIME:
|
||||
case NEU_TYPE_DATA_AND_TIME: {
|
||||
case NEU_TYPE_STRING: {
|
||||
char *op = find_last_character(datatag->address, '.');
|
||||
|
||||
if (op == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user