tretyakovsa / Sonoff_WiFi_switch

Прошивка для ESP8266 (Умный дом)-Firmware for ESP8266 (Smart Home)
GNU General Public License v3.0
179 stars 40 forks source link

При попытке прошить через Ардуино получаю ошибку. #7

Closed AVL4GITHUB closed 7 years ago

AVL4GITHUB commented 7 years ago

Здравствуйте! Такя ошибка:

Sonoff_WiFi_switch.ino:17:80: fatal error: ArduinoJson.h: No such file or directory compilation terminated. Ошибка компиляции. На компе у меня файла ArduinoJson.h: нет вообще. Как исправить ситуацию? Спасибо!

AVL4GITHUB commented 7 years ago

Немного я продвинулся дальше. Отсюда: https://github.com/bblanchon/ArduinoJson, через ЗИП файл, в Ардуино поставил эту библиотеку, но получил уже такое сообщение при компиляции:

Arduino: 1.6.5 (Windows XP), Плата"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 4M (1M SPIFFS), ck, Disabled, None"

Изменена опция сборки, пересобираем все

Sonoff_WiFi_switch.ino:18:79: fatal error: DHT.h: No such file or directory compilation terminated. Ошибка компиляции.

WARNING: Spurious .github folder in 'ArduinoJson' library

WARNING: Spurious .github folder in 'ArduinoJson' library

AVL4GITHUB commented 7 years ago

Продвинулся я дальше. Поставил все этибибкиотеки:

include //https://github.com/bblanchon/ArduinoJson

include //https://github.com/markruys/arduino-DHT

include //https://github.com/Imroy/pubsubclient

Но теперь при компиляции получаю такую ошибку:

Arduino: 1.6.5 (Windows XP), Плата"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 4M (1M SPIFFS), ck, Disabled, None"

Sonoff_WiFi_switch.ino: In function 'void setup()': Sonoff_WiFi_switch:123: error: 'FS_init' was not declared in this scope Sonoff_WiFi_switch:124: error: 'loadConfig' was not declared in this scope Sonoff_WiFi_switch:125: error: 'tachinit' was not declared in this scope Sonoff_WiFi_switch:126: error: 'WiFi_init' was not declared in this scope Sonoff_WiFi_switch:127: error: 'relay_init' was not declared in this scope Sonoff_WiFi_switch:128: error: 'sensor_init' was not declared in this scope Sonoff_WiFi_switch:129: error: 'timers_init' was not declared in this scope Sonoff_WiFi_switch:130: error: 'Movement_init' was not declared in this scope Sonoff_WiFi_switch:131: error: 'HTTP_init' was not declared in this scope Sonoff_WiFi_switch:132: error: 'SSDP_init' was not declared in this scope Sonoff_WiFi_switch:133: error: 'ntp_init' was not declared in this scope Sonoff_WiFi_switch:135: error: 'ddns_init' was not declared in this scope Sonoff_WiFi_switch:136: error: 'ip_wan' was not declared in this scope Sonoff_WiFi_switch:137: error: 'MQTT_init' was not declared in this scope Sonoff_WiFi_switch.ino: In function 'void loop()': Sonoff_WiFi_switch:146: error: 'handleUDP' was not declared in this scope Sonoff_WiFi_switch:147: error: 'handleRelay' was not declared in this scope Sonoff_WiFi_switch:156: error: 'ip_wan' was not declared in this scope Sonoff_WiFi_switch:160: error: 'runTimers' was not declared in this scope Sonoff_WiFi_switch:165: error: 'handleMQTT' was not declared in this scope 'FS_init' was not declared in this scope

СКРИНШОТ: http://ipic.su/img/img7/fs/kiss_42kb.1490001187.png

AVL4GITHUB commented 7 years ago

Добавил вкладки и скомпилировалось: http://ipic.su/img/img7/fs/kiss_42kb.1490003072.png