mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-13 04:58:09 +00:00
Add option for auto-detect measurements.
In case the decoded payload contains random keys the auto-detect measurements feature will add new measurements for each uplink. With this option it is possible to turn auto-detection off to avoid polluting the database with many measurements. Closes #42.
This commit is contained in:
@ -177,6 +177,12 @@ message DeviceProfile {
|
||||
// Measurements.
|
||||
// If defined, ChirpStack will visualize these metrics in the web-interface.
|
||||
map<string, Measurement> measurements = 27;
|
||||
|
||||
// Auto-detect measurements.
|
||||
// If set to true, measurements will be automatically added based on the
|
||||
// keys of the decoded payload. In cases where the decoded payload contains
|
||||
// random keys in the data, you want to set this to false.
|
||||
bool auto_detect_measurements = 28;
|
||||
}
|
||||
|
||||
message Measurement {
|
||||
|
@ -145,6 +145,12 @@ message DeviceProfileTemplate {
|
||||
// Measurements.
|
||||
// If defined, ChirpStack will visualize these metrics in the web-interface.
|
||||
map<string, Measurement> measurements = 28;
|
||||
|
||||
// Auto-detect measurements.
|
||||
// If set to true, measurements will be automatically added based on the
|
||||
// keys of the decoded payload. In cases where the decoded payload contains
|
||||
// random keys in the data, you want to set this to false.
|
||||
bool auto_detect_measurements = 29;
|
||||
}
|
||||
|
||||
message DeviceProfileTemplateListItem {
|
||||
|
Reference in New Issue
Block a user