File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ void provisioningSetState(uint8_t newState)
12111211}
12121212
12131213unsigned long provisioningStartTime;
1214- const unsigned long provisioningTimeout = 20000 ;
1214+ const unsigned long provisioningTimeout = 120000 ;
12151215
12161216void updateProvisioning ()
12171217{
@@ -1402,6 +1402,14 @@ void updateProvisioning()
14021402 httpClientModeNeeded = false ; // Tell HTTP_Client to give up. (But it probably already has...)
14031403 displayAlreadyRegistered (5000 );
14041404
1405+ provisioningSetState (PROVISIONING_KEYS_REMAINING);
1406+ }
1407+ else if (ztpResponse == ZTP_UNKNOWN_ERROR)
1408+ {
1409+ systemPrintln (" updateProvisioning: ZTP_UNKNOWN_ERROR" );
1410+
1411+ httpClientModeNeeded = false ; // Tell HTTP_Client to give up. (But it probably already has...)
1412+
14051413 provisioningSetState (PROVISIONING_KEYS_REMAINING);
14061414 }
14071415 }
You can’t perform that action at this time.
0 commit comments