Добавление платы ESP8266 в менеджер плат

arduinchik
Offline
Зарегистрирован: 26.05.2018

Здравствуйте, господа форумчане. Вот на днях решил поиграться с ESP-12F, но уже застрял на этапе добавления этой платы в менеджер. 

В настройках ввел этот адрес: http://arduino.esp8266.com/stable/package_esp8266com_index.json

Захожу в менеджер плат, нахожу esp, выбираю самую последнюю версию, нажимаю установить, но постоянно выдает данную ошибку:

 Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2...
java.lang.RuntimeException: java.lang.Exception: Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2...
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:176)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2...
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:69)
	at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:102)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:173)
	... 1 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
	at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
	at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
	... 4 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
	at sun.security.validator.Validator.validate(Validator.java:260)
	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
	... 17 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
	... 23 more
 Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2...
java.lang.RuntimeException: java.lang.Exception: Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2...
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:176)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2...
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:69)
	at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:102)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:173)
	... 1 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
	at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
	at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
	... 4 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
	at sun.security.validator.Validator.validate(Validator.java:260)
	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
	... 17 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
	... 23 more

Я пробовал выбирать разные версии, пробовал писать другую ссылку, но всегда эта ошибка. Помогите пожалуйста.

Версия IDE 1.8.5

achuser
Offline
Зарегистрирован: 02.03.2013

может фаервол какой блокирует или еще чего. у меня нормально все добавилось.

Чем заменить sscanf для ESP? Кто-нибудь со строками работал на этих модулях?

Shuring
Offline
Зарегистрирован: 16.08.2018

achuser пишет:
Чем заменить sscanf для ESP? Кто-нибудь со строками работал на этих модулях?

Я работал со строками. Что не так с sscanf?

achuser
Offline
Зарегистрирован: 02.03.2013

если под IDE, то выдает ошибку, приходится извращаться иными способами, чтобы из строки извлечь что-то

Shuring
Offline
Зарегистрирован: 16.08.2018

achuser пишет:
если под IDE, то выдает ошибку, приходится извращаться иными способами, чтобы из строки извлечь что-то

Arduino IDE 1.8.6, библиотека esp8266 Arduino 2.4.1 - нет ошибок при компиляции кода с функцией sscanf. Может, вы её готовить не умеете? ;)

achuser
Offline
Зарегистрирован: 02.03.2013

хз, в ардуино компилится, в nodeMCU нет, надо смотреть будет ))  Но не у меня одного такая проблема, и англоязычные мучаются в т.ч. и наши.

DJYarik
Offline
Зарегистрирован: 08.10.2018
Добрый вечер
Такую ошибку победил, так: 
выкачиваем все эти пакеты руками и копируем в каталог C:\Users\...пользователь...\AppData\Local\Arduino15\staging\packages
после запускаем еще раз мнеджер плат и все успешно устанавливается...
(этап загрузки пропускается и сразу идет проверка архива и установка)
для версии esp 2.4.2 нужны эти 5 архивов:
 
 
если в каталоге есть одноименные файлы нулевого объема, заменяем на полновесные выкачанные руками...
у меня на версии Arduino 1.6.11 и финальной 1.8.7 было 5 ошибок:
1. Возникла ошибка при загрузке https://github.com/esp8266/Arduino/releases/download/2.4.2/esp8266-2.4.2.zip
3. Возникла ошибка при загрузке https://github.com/igrr/esptool-ck/releases/download/0.4.13/esptool-0.4.13-win32.zip
4. Возникла ошибка при загрузке https://github.com/igrr/esptool-ck/releases/download/0.4.13/esptool-0.4.13-win32.zip
 
maxv2005
Offline
Зарегистрирован: 14.11.2018

Спасибо, ваш совет очень помог. Только я скачал все пакеты, без полного комплекта не устанавливалось.

Рубик-Кубик
Рубик-Кубик аватар
Offline
Зарегистрирован: 30.12.2018

Доброе время суток. Помогите с решением даной проблемы:

http://arduino.esp8266.com/stable/package_esp8266com_index.json ошибка проверки сигнатуры файла. Файл проигнорирован.

Это сообщения в ком.строке, не могу подкючить платы esp8266, пользуюсь arduino-1.8.8

ЗАРАНИЕ БЛАГОДАРЮ.