79374344

Date: 2025-01-21 12:11:51
Score: 2
Natty:
Report link

The problem was that Arduino.h (which contains HardwareSerial) is a C++ library. So when I tried to include it in a C file, it gave an error.

Changing the file extension from .c to .cpp fixed the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mobi Zaman