I am working on a project with ESP32 which must use bluetooth first and wifi later, when testing with bluetooth everything is great, but when including the wifi library it seems that the size is too much
The board I use is ESP32 Dev KitC V2
When trying to upload the program I get the following error:
Sketch uses 1655265 bytes (126%) of the program storage space. The maximum is 1310720 bytes.
Should I buy a board with more memory? In that case, which one?
I'm not with my laptop right now, I'm answering from my phone, so I can't tell you exactly, but look at the option where you can configure the flash size, FS and OTA.
Use the option that leaves you with the most flash available.