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

Not able to see other type of data #140

Open
ROYAL834 opened this issue May 25, 2024 · 3 comments
Open

Not able to see other type of data #140

ROYAL834 opened this issue May 25, 2024 · 3 comments

Comments

@ROYAL834
Copy link

when i am trying to send my json data from mqtt broker i am not able see the tag update with the value. but it is working for the integer type data

@riclolsen
Copy link
Owner

riclolsen commented May 25, 2024

Use JSONPath syntax to add each property you want to extract of a JSON payload to the "topics" list of the connection for tags be auto created. Or put the JSONPath in the protocolSourceObjectAddress of a manually created tag.
https://github.com/JSONPath-Plus/JSONPath
e.g. "root_topic/subtopic/$.somePropertyName"

@ROYAL834
Copy link
Author

I am getting through mqtt brocker in json format how to map json key values to tags

this is my json format data from mqtt
{
"name": "TOrder-01",
"category": "Park",
"state": "RAW",
"intendedVehicle": "Vehicle-0001",
"processingVehicle": "Vehicle-0002",
"destinations": [
{
"locationName": "Storage-01",
"operation": "Store",
"state": "PRISTINE",
"properties": [
{
"key": "key1",
"value": "value1"
}
]
}
]
}

@riclolsen
Copy link
Owner

Put something like

"topic_name/subtopic_name/$.category"
"topic_name/subtopic_name/$.state"
...

On the "topics" list of the connection for tags be auto created. Or put the in the protocolSourceObjectAddress of a manually created tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants