arduino / ArduinoCloudProviderExamples

Examples of how to connect various Arduino boards to cloud providers.
71 stars 26 forks source link

Google Cloud IOT Core Fails re negotiate JWT #12

Open fabltd opened 4 years ago

fabltd commented 4 years ago

Hi

When the JWT token expires the connection is dropped by Google. The connection is not established. Steps to replicate - reduce the JWT EXP time to 10 mins. The Token will expire and communication with IOT core will stop.

Is there a connection watchdog to restart the connection of poll fails to get a response?

fabltd commented 4 years ago

Any update on this ? Is this project still monitored??

adamrosebrock commented 3 years ago

If you mean "the JWT token is only valid between IAT and EXP", this is an expected behaviour and a built-in security feature. See Google's documentation at https://cloud.google.com/iot/docs/concepts/device-security.
The connection is closed when the JWT expires (after accounting for the allowed clock drift).