ลองไล่โโปรแกรม เครื่อหมาย } มีครบไหม
Arduino: 1.8.19 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
fanny:122:1: error: expected declaration before '}' token
}
^
exit status 1
expected declaration before '}' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.