Same issue, mine was caused by using 'main.c' instead of 'main.cpp'. Fixed by using cpp extension.
Source: https://community.platformio.org/t/iden ... ared/25114
Search found 1 match
- Mon May 20, 2024 6:15 pm
- Forum: ESP32 Arduino
- Topic: PlatformIO/Arduino/ESP-IDF: 'Serial' was not declared in this scope
- Replies: 4
- Views: 64108