dasetiawan / ESP32-PZEM004T

power metering using ESP32 and PZEM004T over MQTT
4 stars 3 forks source link

serial2' was not declared in this scope #2

Open Bilalaerox opened 4 years ago

Bilalaerox commented 4 years ago

Hi, I am getting the subject error while compiling the code. Can you tell me why please?

image

brainstorm commented 2 years ago

Simply put: Your board might not actually have that serial port, see: https://forum.arduino.cc/t/suddenly-my-program-serial2-was-not-declared-in-this-scope/888320/3