mindsphere / mindconnect-nodejs

NodeJS Library for Industrial IoT Connectivity - TypeScript SDK for Industrial IoT - Command Line Interface - Development Proxy - typescript-sdk is waiting for your contributions!
https://developer.siemens.com/industrial-iot-open-source/index.html
MIT License
68 stars 23 forks source link

Mindsphere Token Authentication Failure #346

Closed gibinjoe closed 1 year ago

gibinjoe commented 1 year ago

I have the mindconnect node pushing data to mindsphere on a SIMATIC LiveTwin edge device. The device is used intermittently - couple of times every month. Recently, when I tried to run the device, I get token authentication error on the mindconnect node. My understanding is that new token is retrieved some time before the expiry. How can I configure the node to retrieve the token if it is activated after the expiry?

sn0wcat commented 1 year ago

If your agent is calling MindSphere APIs only occasionally the authentication secrets might expire. In order to prevent that the Node-RED has an automatic keep alive feature which renews the client secrets even if no data is sent. If your secret is expired you will have to onboard the agent again.