mirror of
https://github.com/emqx/neuron.git
synced 2026-10-21 00:36:23 +08:00
write:check custom
This commit is contained in:
@@ -1190,6 +1190,12 @@ int is_value_in_range(neu_type_e tag_type, int64_t value, double value_d,
|
||||
} else {
|
||||
return NEU_ERR_SUCCESS;
|
||||
}
|
||||
case NEU_TYPE_CUSTOM:
|
||||
if (write_type != NEU_TYPE_CUSTOM) {
|
||||
return NEU_ERR_PLUGIN_TAG_TYPE_MISMATCH;
|
||||
} else {
|
||||
return NEU_ERR_SUCCESS;
|
||||
}
|
||||
default:
|
||||
return NEU_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user