Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Validation of config data in assets #14

Open
2 of 8 tasks
CarlosSous opened this issue Nov 14, 2023 · 4 comments
Open
2 of 8 tasks

[Feature]: Validation of config data in assets #14

CarlosSous opened this issue Nov 14, 2023 · 4 comments
Labels
community-feedback Issues where community feedback is needed. enhancement New feature or request

Comments

@CarlosSous
Copy link

Tell us about your request

Before to configure the tags in S72mqtt asset throught mqtt client, compile the config will be very useful for supress sintax error.

Which component(s) is this request for?

  • Coreflux Broker
  • Coreflux Hub
  • Flux Assets
  • Flux Language
  • Power Ups
  • User Experience (UX)
  • Documentation
  • Conceptual Features

Is your feature request related to a problem? Please describe.

Recently i have at project with 2500 tags (see below). In the name of tags i use carateres like "%". But the config not acept that kind of caracter. I take many time to understand that.

{
"Name": "ID1_NomeReservatorio",
"WriteDirection": 1,
"MQTTTopic": "ID1/NomeReservatorio",
"MQTTQoS": 0,
"MQTTRetain": false,
"VariableType": 6,
"Variable": "DB10.DBB2 STRING 16",
"Behaviour": 0
},

Describe the solution you'd like

When write the topic (--assetConfigSave <theAssetGuid|AssetName> ), the complilation occour and give you the state.

Describe alternatives you've considered

Have at external aplication when you chose which asset is used and compilation is started.

Is this request for a new asset?

No response

Additional context

No response

@HugoAVaz HugoAVaz added the community-feedback Issues where community feedback is needed. label Nov 14, 2023
@HugoAVaz
Copy link
Contributor

The ideia behind this is to have something sequential in the tag generation? Something like
i want to have 10 variables :
{
"Name": "ID1_NomeReservatorio",
"WriteDirection": 1,
"MQTTTopic": "ID1/NomeReservatorio",
"MQTTQoS": 0,
"MQTTRetain": false,
"VariableType": 6,
"Variable": "DB10.DBB2 STRING 16",
"Behaviour": 0
},
{
"Name": "ID2_NomeReservatorio",
"WriteDirection": 1,
"MQTTTopic": "ID2/NomeReservatorio",
"MQTTQoS": 0,
"MQTTRetain": false,
"VariableType": 6,
"Variable": "DB10.DBB20 STRING 16",
"Behaviour": 0
},
...

it creates 10 variables somehow.... with special mechanics.

@CarlosSous
Copy link
Author

Maybe i was not well correctly explain the ideia.
The ideia is having at compiler for validate the tags.
For example in the below picture is forgeted the comma. Or in the name is used % or $ or #.
Or in the VariableType instead you put a valid number it´s config with the number 100.
Tags_config

@HugoAVaz
Copy link
Contributor

this probably is a feature for each asset, not only siemens !

@HugoAVaz HugoAVaz added the enhancement New feature or request label Nov 14, 2023
@HugoAVaz HugoAVaz changed the title [Feature]: Compiler for config data in assets [Feature]: Validation of config data in assets Nov 14, 2023
@HugoAVaz
Copy link
Contributor

HugoAVaz commented Nov 14, 2023

Replaced the title of the feature .... i think it is better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-feedback Issues where community feedback is needed. enhancement New feature or request
Projects
Status: Development
Development

No branches or pull requests

2 participants