Device login
Hello, After my wifi connection, the QR code appears but I don't have time to enter it on the Microsoft page. Is there a way to pause or that it does not generate a new QR Code ? thanks for your help
in file frame_todo_login.cpp,
Line 92
if(millis() - _last_update_time > 20000)
change to something that gives you enough time to complete the login auth - 2 mins is comfortable, but you can be much quicker following the link supplied in the debug output (serial port).
if(millis() - _last_update_time > 120000)
Also, make sure to hit the settings page before trying any of this, to make sure that your timezone is correct, or the process seems to fail (probably down to https).
After a bit of debugging dozens of failed auth attempts, I have a theory what's going on.
any failed attempt would leave data mapped to the keys in NVS, so the buffers were overflowing, resulting in the app being unable to parse any data from them.
I've lazily also updated line 602 and line 605 in azure.cpp to a size of 5096, and this hack means things now seem pretty reliable.
esp_err_t Azure::loadData()
{
char databuf[5096];
int64_t expire_time = 0;
size_t length = 5096;
nvs_handle nvs_arg;
...