Skip to content

qt py loses secrets.json when battery goes down #621

Open
@migs35323

Description

@migs35323

Describe the bug

my qt-py s3 randomly loses the secrets.json credentials. when battery power goes out/down
i had noticed this issue in firmware beta .88 and right now i was testing with alpha .89 and same behavior
I usually power it through usb but i had been testing battery endurance, so i had been letting the battery go out on purpose.

as a side note, I once had the yellow light and boot out telling me the credentials where wrong, when i opened them in notepad/vscode, the file was correct. but i had to delete the file and recreate it to accept the credentials, however i can't seem to reproduce this again.
in this last behavior the only thing that comes to my mind, is there any sensitivity between LF and CRLF in the file? maybe i edited the file in windows and mixed it in ubuntu and WipperSnapper is not liking it...

Arduino board
qt-py s3 psram version aka qtpy-esp32s3-n4r2

To Reproduce
Steps to reproduce the behavior:

  1. setup qt py with battery and best friend
  2. let it run out of battery
  3. when plugging it again it shows yellow light, boot.out warns about credentials, secrets.json is back to stock again.
    PS: this doesn't happen every time, but about 2 out of 3 times it's not 100% consistent

Expected behavior
secrets,json to not be erased,
or maybe turn it into a toggeable feature where we can choose the secrets to be erased as security feature lol

Which components are connected to your device
qt py s3 (psram version) with battery best friend attached + 2 adafruit temperature sensors connected with stemma qt,

Desktop (please complete the following information):

  • OS: ubuntu 22 or windows 11

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions