基于esp8266的智能家居控制系统-局域网篇1手机控制和透传-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: 跑龙套的保

基于esp8266的智能家居控制系统-局域网篇1手机控制和透传

  [复制链接]
发表于 2015-12-11 01:31 来自手机 | 显示全部楼层
挺好吗!怎么会沉呢
发表于 2015-12-11 01:36 来自手机 | 显示全部楼层
能连接就是不能控制gplo02口!我试试好多次都不行
 楼主| 发表于 2015-12-12 21:02 | 显示全部楼层
tianjiwen 发表于 2015-12-11 01:36
能连接就是不能控制gplo02口!我试试好多次都不行

你们自己尝试修改下控制代码,语法和arduino一样
发表于 2015-12-12 23:40 | 显示全部楼层
上面的代码用1.65没通过,请问下那里的问题
Arduino:1.6.6 (Windows XP), 开发板:"NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200"

D:\Program Files\arduino-1.6.6\arduino-builder -dump-prefs -logger=machine -hardware "D:\Program Files\arduino-1.6.6\hardware" -hardware "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -tools "D:\Program Files\arduino-1.6.6\tools-builder" -tools "D:\Program Files\arduino-1.6.6\hardware\tools\avr" -tools "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -built-in-libraries "D:\Program Files\arduino-1.6.6\libraries" -libraries "E:\Arduino工程\libraries" -fqbn=esp8266com:esp8266:nodemcu:CpuFrequency=80,UploadSpeed=115200 -ide-version=10606 -build-path "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "E:\Arduino工程\esp8266\sketch_dec12d\sketch_dec12d.ino"










D:\Program Files\arduino-1.6.6\arduino-builder -dump-prefs -logger=machine -hardware "D:\Program Files\arduino-1.6.6\hardware" -hardware "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -tools "D:\Program Files\arduino-1.6.6\tools-builder" -tools "D:\Program Files\arduino-1.6.6\hardware\tools\avr" -tools "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -built-in-libraries "D:\Program Files\arduino-1.6.6\libraries" -libraries "E:\Arduino工程\libraries" -fqbn=esp8266com:esp8266:nodemcu:CpuFrequency=80,UploadSpeed=115200 -ide-version=10606 -build-path "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "E:\Arduino工程\esp8266\sketch_dec12d\sketch_dec12d.ino"
D:\Program Files\arduino-1.6.6\arduino-builder -compile -logger=machine -hardware "D:\Program Files\arduino-1.6.6\hardware" -hardware "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -tools "D:\Program Files\arduino-1.6.6\tools-builder" -tools "D:\Program Files\arduino-1.6.6\hardware\tools\avr" -tools "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -built-in-libraries "D:\Program Files\arduino-1.6.6\libraries" -libraries "E:\Arduino工程\libraries" -fqbn=esp8266com:esp8266:nodemcu:CpuFrequency=80,UploadSpeed=115200 -ide-version=10606 -build-path "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "E:\Arduino工程\esp8266\sketch_dec12d\sketch_dec12d.ino"
警告:核心 'ESP8266 Modules' 中的 platform.txt 文件 包含已废弃的 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}",已自动转换为 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"。请考虑更新核心。
警告:核心 'ESP8266 Modules' 中的 platform.txt 文件 包含已废弃的 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}",已自动转换为 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"。请考虑更新核心。
D:\Program Files\arduino-1.6.6\arduino-builder -compile -logger=machine -hardware "D:\Program Files\arduino-1.6.6\hardware" -hardware "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -tools "D:\Program Files\arduino-1.6.6\tools-builder" -tools "D:\Program Files\arduino-1.6.6\hardware\tools\avr" -tools "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -built-in-libraries "D:\Program Files\arduino-1.6.6\libraries" -libraries "E:\Arduino工程\libraries" -fqbn=esp8266com:esp8266:nodemcu:CpuFrequency=80,UploadSpeed=115200 -ide-version=10606 -build-path "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "E:\Arduino工程\esp8266\sketch_dec12d\sketch_dec12d.ino"
D:\Program Files\arduino-1.6.6\arduino-builder -compile -logger=machine -hardware "D:\Program Files\arduino-1.6.6\hardware" -hardware "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -tools "D:\Program Files\arduino-1.6.6\tools-builder" -tools "D:\Program Files\arduino-1.6.6\hardware\tools\avr" -tools "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages" -built-in-libraries "D:\Program Files\arduino-1.6.6\libraries" -libraries "E:\Arduino工程\libraries" -fqbn=esp8266com:esp8266:nodemcu:CpuFrequency=80,UploadSpeed=115200 -ide-version=10606 -build-path "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "E:\Arduino工程\esp8266\sketch_dec12d\sketch_dec12d.ino"
警告:核心 'ESP8266 Modules' 中的 platform.txt 文件 包含已废弃的 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}",已自动转换为 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"。请考虑更新核心。
警告:核心 'ESP8266 Modules' 中的 platform.txt 文件 包含已废弃的 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}",已自动转换为 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"。请考虑更新核心。
警告:核心 'ESP8266 Modules' 中的 platform.txt 文件 包含已废弃的 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}",已自动转换为 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"。请考虑更新核心。
警告:核心 'ESP8266 Modules' 中的 platform.txt 文件 包含已废弃的 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}",已自动转换为 recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"。请考虑更新核心。
WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Ticker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Ticker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Ticker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiClient.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiServer.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiClient.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiServer.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiUdp.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiUdp.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiClient.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11  -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266       "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiServer.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11  -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266       "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\WiFiUdp.cpp"
"D:\Program Files\arduino-1.6.6\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\preproc\ctags_target.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -w -x c++ -M -MG -MP -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\preproc\ctags_target.cpp"
"D:\Program Files\arduino-1.6.6\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\preproc\ctags_target.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp" -o "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp.o"
"D:\Program Files\arduino-1.6.6\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\preproc\ctags_target.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11  -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266       "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp" -o "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp.o"
sketch_dec12d:57: error: stray '\342' in program

sketch_dec12d:57: error: stray '\200' in program

sketch_dec12d:57: error: stray '\234' in program

sketch_dec12d:57: error: stray '\342' in program

sketch_dec12d:57: error: stray '\200' in program

sketch_dec12d:57: error: stray '\235' in program

sketch_dec12d:62: error: stray '\342' in program

sketch_dec12d:62: error: stray '\200' in program

sketch_dec12d:62: error: stray '\234' in program

sketch_dec12d:62: error: stray '\342' in program

sketch_dec12d:62: error: stray '\200' in program

sketch_dec12d:62: error: stray '\235' in program

E:\Arduino宸ョ▼\esp8266\sketch_dec12d\sketch_dec12d.ino: In function 'void loop()':

sketch_dec12d:57: error: expected ')' before 'on'

sketch_dec12d:62: error: expected ')' before 'off'

sketch_dec12d:57: error: stray '\342' in program

sketch_dec12d:57: error: stray '\200' in program

sketch_dec12d:57: error: stray '\234' in program

sketch_dec12d:57: error: stray '\342' in program

sketch_dec12d:57: error: stray '\200' in program

sketch_dec12d:57: error: stray '\235' in program

sketch_dec12d:62: error: stray '\342' in program

sketch_dec12d:62: error: stray '\200' in program

sketch_dec12d:62: error: stray '\234' in program

sketch_dec12d:62: error: stray '\342' in program

sketch_dec12d:62: error: stray '\200' in program

sketch_dec12d:62: error: stray '\235' in program

使用 1.0  版本的库 ESP8266WiFi 在文件夹: D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi
exit status 1
stray '\342' in program

"D:\Program Files\arduino-1.6.6\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\preproc\ctags_target.cpp"
E:\Arduino宸ョ▼\esp8266\sketch_dec12d\sketch_dec12d.ino: In function 'void loop()':

sketch_dec12d:57: error: expected ')' before 'on'

sketch_dec12d:62: error: expected ')' before 'off'

使用 1.0  版本的库 ESP8266WiFi 在文件夹: D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi
exit status 1
stray '\342' in program

"D:\Program Files\arduino-1.6.6\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\preproc\ctags_target.cpp"
"D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10606 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266  -DESP8266 "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\cores\esp8266" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\variants\nodemcu" "-ID:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp" -o "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\buildbcc7e596e9cd032a4fdb854466f078d0.tmp\sketch\sketch_dec12d.ino.cpp.o"
sketch_dec12d:57: error: stray '\342' in program

sketch_dec12d:57: error: stray '\200' in program

sketch_dec12d:57: error: stray '\234' in program

sketch_dec12d:57: error: stray '\342' in program

sketch_dec12d:57: error: stray '\200' in program

sketch_dec12d:57: error: stray '\235' in program

sketch_dec12d:62: error: stray '\342' in program

sketch_dec12d:62: error: stray '\200' in program

sketch_dec12d:62: error: stray '\234' in program

sketch_dec12d:62: error: stray '\342' in program

sketch_dec12d:62: error: stray '\200' in program

sketch_dec12d:62: error: stray '\235' in program

E:\Arduino宸ョ▼\esp8266\sketch_dec12d\sketch_dec12d.ino: In function 'void loop()':

sketch_dec12d:57: error: expected ')' before 'on'

sketch_dec12d:62: error: expected ')' before 'off'

使用 1.0  版本的库 ESP8266WiFi 在文件夹: D:\Program Files\arduino-1.6.6\hardware\esp8266com\esp8266\libraries\ESP8266WiFi
exit status 1
stray '\342' in program
 楼主| 发表于 2015-12-13 13:46 | 显示全部楼层
Peter58 发表于 2015-12-12 23:40
上面的代码用1.65没通过,请问下那里的问题
Arduino:1.6.6 (Windows XP), 开发板:"NodeMCU 0.9 (ESP-12 Mo ...

加Q吧,论坛不常来1113150374
发表于 2015-12-13 14:08 | 显示全部楼层
本帖最后由 Peter58 于 2015-12-13 14:11 编辑
跑龙套的保 发表于 2015-12-13 13:46
加Q吧,论坛不常来1113150374

QQ群已加,谢谢!!
发表于 2016-1-13 08:54 | 显示全部楼层
好帖子,继续学习
发表于 2016-1-21 10:27 | 显示全部楼层
12313 发表于 2015-11-30 21:09
sketch_nov30b.ino:57:1: error: stray '\' in program
sketch_nov30b.ino:57:1: error: stray '\' in pro ...

你要把中文的“”,改成英文的""
发表于 2016-1-21 13:06 | 显示全部楼层
不错啊,其实esp8266 内部有个处理器,你可以把AT命令固件换掉,用自己编写的固件,那么成本就降低了,他们官方有提供sdk
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-30 23:57 , Processed in 0.113283 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表