|
大佬们,新手用ide 上传esp8266 blinker的时候失败了求教一下
Arduino:1.8.10 (Windows 10), 开发板:"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"
In file included from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:10:0,
from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:683:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
In file included from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:82:0,
from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h:194:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "false";
^
In file included from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:83:0,
from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:97:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:98:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char * authKey() { if (isInit) return conn->authKey(); else return ""; }
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:234:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* dataParse() { if (canParse) return conn->lastRead(); else return ""; }
^
In file included from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11:0,
from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: At global scope:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:777:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6380:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6387:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "false";
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7012:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7026:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7032:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7038:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino: At global scope:
C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:55:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerButton Button1("btn-abc");
^
C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:56:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerNumber Number1("num-abc");
^
Executable segment sizes:
IROM : 495112 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 28084 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1388 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 5388 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 30056 ) - zeroed variables (global, static) in RAM/HEAP
项目使用了 529972 字节,占用了 (50%) 程序存储空间。最大为 1044464 字节。
全局变量使用了36832字节,(44%)的动态内存,余留45088字节局部变量。最大为81920字节。
esptool.py v2.8
Serial port COM3
Traceback (most recent call last):
File "C:\Users\THUNDEROBOT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/upload.py", line 65, in <module>
esptool.main(cmdline)
File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2889, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 237, in __init__
self._port = serial.serial_for_url(port)
File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/pyserial\serial\__init__.py", line 88, in serial_for_url
instance.open()
File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/pyserial\serial\serialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': FileNotFoundError(2, 'ϵͳ�Ҳ���ָ�����ļ���', None, 2)
serial.serialutil.SerialException: could not open port 'COM3': FileNotFoundError(2, 'ϵͳ�Ҳ���ָ�����ļ���', None, 2)
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|