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

Make the plugin more generic to support multiple asset based on payload or topic #28

Open
chicco785 opened this issue Jan 15, 2024 · 0 comments

Comments

@chicco785
Copy link

if this is of interest to the community, we would like to make a pr out of our custom fork:
develop...zaphiro-technologies:fledge-south-mqtt:extract-asset-from-message-or-topic

happy to adapt the code to your suggestions, basically the idea is to support extraction of the asset

  1. from a topic pattern. e.g., the value of + in measurement/+/value)
  2. from the payload e.g.:
{
  "asset": "my-asset-id-2",
  "readings": {
    "current": 10.29,
    "voltage": 23.82
  }
}
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

1 participant