ESP32C2's hid cannot persist and reconnect, ESP32C3 is fine
After restarting ESP32C2's hid, it cannot persist and needs to be re paired to reconnect. ESP32C3 is fine, but it may be an NVS issue. If ESP32C2 is not restarted, there is no problem and it can be reconnected
You need to enable storing bond info to nvs, check your config.
It's not an NVS issue, the device can automatically connect repeatedly without restarting. It's because the device automatically connects after restarting, but the verification fails, causing the pairing binding to be lost. It seems that the initialization process after restarting or the automatic connection error caused the verification to fail, resulting in the loss of pairing binding
The same code works fine on both ESP32 and ESP32C3, I'm not sure if C2 supports quick WiFi and Bluetooth connections
Can you enable debug logs and show them here?