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

Re-Onboard device after new created datapoints in mindsphere #95

Closed
EliasReuter opened this issue Jul 6, 2020 · 2 comments
Closed

Re-Onboard device after new created datapoints in mindsphere #95

EliasReuter opened this issue Jul 6, 2020 · 2 comments
Labels
question Further information is requested

Comments

@EliasReuter
Copy link

We're connecting an IoT2040 to mindsphere with NodeRed and this node installed in it.
Onboarding and uploading data works fine.
Once we onboarded our device and create our datasources and datapoints in Mindsphere, we are able to send data from our mentioned IOT2040.
The problem is when we create new datapoints in Mindsphere and add those given datapointIDs to our to-send json. The mindconnect node only accepts these new datapoints if we cancel the mentioned onboarding that was already working and create a new SHARED SECRET to onboard the IoT2040 again. Then the new datasources/datapoints are updated correctlly.

Thank you 👍

@sn0wcat sn0wcat added the question Further information is requested label Jul 7, 2020
@sn0wcat
Copy link
Member

sn0wcat commented Jul 7, 2020

You could include msg._forceGetConfig=true; in the input message to force the node to get the configuration from mindsphere again instead of completely re-onboarding.

image

Don't forget to remove the _forceGetConfig after the config was updated otherwise you will create a lot of unnecessary load on your tenant....

@EliasReuter
Copy link
Author

Great!
Adding "msg._forceGetConfig=true;" and deploying updated the datapoints config.
Once updated, removing that line and deploying to the previous state work as fine too.

Thank you 🥇

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

No branches or pull requests

2 participants