อยู่ที่โปรแกรม ลูกค้าแล้ว ครับ ตรวจสอบ Library ครับ หรือ code ถูกต้องหรือไม่
Arduino:1.8.19 (Windows 10), บอร์ด:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from c:\users\sahas\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec\xtensa-lx106-elf\include\assert.h:10,
from c:\users\sahas\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec\xtensa-lx106-elf\include\sys\reent.h:503,
from c:\users\sahas\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec\xtensa-lx106-elf\include\stdlib.h:18,
from c:\users\sahas\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec\xtensa-lx106-elf\include\c++\10.3.0\cstdlib:75,
from c:\users\sahas\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec\xtensa-lx106-elf\include\c++\10.3.0\stdlib.h:36,
from C:\Users\sahas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.0\cores\esp8266/Arduino.h:27,
from sketch\iot.ino.cpp:1:
D:\arduino\libraries\anto-esp8266-arduino\src/wifimanager/WiFiManager.h:25:24: error: 'const char HTTP_HEAD []' redeclared as different kind of entity
25 | const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>";
| ^~~~~~~
In file included from D:\arduino\libraries\anto-esp8266-arduino\src/AntoWiFi.h:6,
from D:\arduino\libraries\anto-esp8266-arduino\src/AntoIO.h:5,
from D:\arduino\iot\iot.ino:1:
C:\Users\sahas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:47:39: note: previous declaration 'HTTPMethod HTTP_HEAD'
47 | enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
| ^~~~~~~~~
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
แก้แล้วขึ้นแบบนี้ต่อคับ
เกิดจาก onedrive ครับ ให้ติดตั้ง arduino ใหม่และห้ามไปยุ่นเกี่ยวกับ OneDrive เพราะตัว Arduino อ่านภาษาไทยไดเร็กเทอรี่ คำว่า "เอกสาร" ไม่ได้
Arduino:1.8.19 (Windows 10), บอร์ด:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Traceback (most recent call last):
File "C:\Users\sahas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.0/tools/mkbuildoptglobals.py", line 846, in <module>
sys.exit(main())
File "C:\Users\sahas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.0/tools/mkbuildoptglobals.py", line 843, in main
handle_error(0) # commit print buffer
File "C:\Users\sahas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.0/tools/mkbuildoptglobals.py", line 262, in handle_error
print(msg_print_buf, file=fd, end='', flush=True)
File "D:\obj\Windows-Release\37win32_Release\msi_python\zip_win32\cp437.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 186-191: character maps to <undefined>
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Invalid library found in C:\Users\sahas\OneDrive\เอกสาร\Arduino\libraries\anto-esp8266-arduino: no headers files (.h) found in C:\Users\sahas\OneDrive\เอกสาร\Arduino\libraries\anto-esp8266-arduino
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.