0

Updating SSL on Huzzah ESP8266
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Updating SSL on Huzzah ESP8266

by robbgreathouse on Mon May 20, 2019 3:05 am

I am doing the Instructables Course https://www.instructables.com/lesson/Ci ... et-Action/.

I cannot get it to connect to Adafruit.io. I get the error message Network disconnected.

I ran the "Adafruit MQTT Library ESP8266 Adafruit IO SSL/TLS example" to test it. When I do I get the following error.

Connecting to io.adafruit.com
00:28:18.413 -> Connection failed. Halting execution.
00:28:20.381 ->
00:28:20.381 -> Soft WDT reset
00:28:20.381 ->
00:28:20.381 -> >>>stack>>>
00:28:20.381 ->
00:28:20.381 -> ctx: cont
00:28:20.381 -> sp: 3ffffdd0 end: 3fffffc0 offset: 01b0
00:28:20.381 -> 3fffff80: 3ffe85aa 3ffeebd0 3ffeec04 4020129a
00:28:20.381 -> 3fffff90: 40207728 d800000a feefeffe feefeffe
00:28:20.381 -> 3fffffa0: 3fffdad0 00000000 3ffeec4c 402052fc
00:28:20.381 -> 3fffffb0: feefeffe feefeffe 3ffe8508 40100459
00:28:20.381 -> <<<stack<<<
00:28:20.415 ->

From what I can find in the forums it seems to be a problem with SSL certs on the Huzzah ESP8266. The recommendation was to run the FirmwareUpdater in examples. However, when I do I get the error

"ESP32BootROM.cpp:331:44: error: 'NINA_GPIO0' was not declared in this scope
ESP32BootROMClass ESP32BootROM(SerialNina, NINA_GPIO0, NINA_RESETN);"

I can't find anything in the forums regarding this error.

I am running this on a MAC OSX 10.14.5

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Re: Updating SSL on Huzzah ESP8266

by brubell on Mon May 20, 2019 9:31 am

[s]Try downgrading the firmware on your ESP8266, following this guide: viewtopic.php?f=56&t=150307[/s]

brubell
 
Posts: 402
Joined: Fri Jul 17, 2015 10:33 pm

Re: Updating SSL on Huzzah ESP8266

by robbgreathouse on Mon May 20, 2019 10:42 am

Hi, I reverted to ESP8266 2.4.2 and I now get this error.

Arduino: 1.8.9 (Mac OS X), Board: "Arduino Yún"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/robbg/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/robbg/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/robbg/Documents/Arduino/libraries -fqbn=arduino:avr:yun -vid-pid=0000_0000 -ide-version=10809 -build-path /var/folders/53/5l0bf82j2gg36d0x3y_dsk480000gn/T/arduino_build_715323 -warnings=none -build-cache /var/folders/53/5l0bf82j2gg36d0x3y_dsk480000gn/T/arduino_cache_95688 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/robbg/Documents/Arduino/sketch_may19b/sketch_may19b.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/robbg/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/robbg/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/robbg/Documents/Arduino/libraries -fqbn=arduino:avr:yun -vid-pid=0000_0000 -ide-version=10809 -build-path /var/folders/53/5l0bf82j2gg36d0x3y_dsk480000gn/T/arduino_build_715323 -warnings=none -build-cache /var/folders/53/5l0bf82j2gg36d0x3y_dsk480000gn/T/arduino_cache_95688 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/robbg/Documents/Arduino/sketch_may19b/sketch_may19b.ino
Using board 'yun' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Yun\"" -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/yun /var/folders/53/5l0bf82j2gg36d0x3y_dsk480000gn/T/arduino_build_715323/sketch/sketch_may19b.ino.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Yun\"" -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/yun -I/Users/robbg/Documents/Arduino/libraries/ArduinoHttpClient/src /var/folders/53/5l0bf82j2gg36d0x3y_dsk480000gn/T/arduino_build_715323/sketch/sketch_may19b.ino.cpp -o /dev/null
sketch_may19b:21:25: error: ESP8266WiFi.h: No such file or directory
compilation terminated.
Using library ArduinoHttpClient at version 0.4.0 in folder: /Users/robbg/Documents/Arduino/libraries/ArduinoHttpClient
exit status 1
ESP8266WiFi.h: No such file or directory

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Re: Updating SSL on Huzzah ESP8266

by brubell on Mon May 20, 2019 11:50 am

This was a bug on ESP8266 2.5.1. I spent this morning looking into it and patching Adafruit IO Arduino and Adafruit MQTT.

ESP8266 BSP 2.5.1's WiFiClientSecure switched to BearSSL as the default (https://github.com/esp8266/Arduino/blob ... cure.h#L27) and broke compatibility with how these libraries authenticated with Adafruit IO.

The relevant patches are below, I'll be merging them in and releasing later today.

https://github.com/adafruit/Adafruit_IO_Arduino/pull/89
https://github.com/adafruit/Adafruit_MQ ... y/pull/156

brubell
 
Posts: 402
Joined: Fri Jul 17, 2015 10:33 pm

Re: Updating SSL on Huzzah ESP8266

by robbgreathouse on Mon May 20, 2019 1:00 pm

Thanks!

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Re: Updating SSL on Huzzah ESP8266

by robbgreathouse on Tue May 21, 2019 7:57 pm

Hi,

Was the update committed?

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Re: Updating SSL on Huzzah ESP8266

by brubell on Wed May 22, 2019 10:12 am

robbgreathouse wrote:Hi,

Was the update committed?


Not yet, there was a few small issues with the build script. It broke in board support package 2.5.0, so I've been rebuilding it within the PR. I'm also adding AirLift board support to the build script for this library. When this (https://github.com/adafruit/Adafruit_IO_Arduino/pull/89) PR passes and merged in, I'll do a release.

brubell
 
Posts: 402
Joined: Fri Jul 17, 2015 10:33 pm

Re: Updating SSL on Huzzah ESP8266

by brubell on Wed May 22, 2019 5:47 pm

Released!

brubell
 
Posts: 402
Joined: Fri Jul 17, 2015 10:33 pm

Re: Updating SSL on Huzzah ESP8266

by robbgreathouse on Wed May 22, 2019 9:59 pm

Hurrah!!

Thank you!

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Re: Updating SSL on Huzzah ESP8266

by sayvazov on Sun May 26, 2019 11:36 pm

I'm not sure if this is exactly the error I am getting (though it appears quite close), but I'm still getting this (seemingly) same error. 2.5.2 hasn't helped, and 2.4.2 doesn't work for me either. The only difference as far as I can tell is that I have to use a static IP in order to get a connection to my router. Any chance that could be causing an issue?

sayvazov
 
Posts: 1
Joined: Fri May 24, 2019 8:53 pm

Re: Updating SSL on Huzzah ESP8266

by brubell on Tue May 28, 2019 10:39 am

sayvazov wrote:I'm not sure if this is exactly the error I am getting (though it appears quite close), but I'm still getting this (seemingly) same error. 2.5.2 hasn't helped, and 2.4.2 doesn't work for me either. The only difference as far as I can tell is that I have to use a static IP in order to get a connection to my router. Any chance that could be causing an issue?


Were you able to use a non-static IP on a previous Adafruit IO Arduino version? Could you post the stack trace like robbgreathouse?

brubell
 
Posts: 402
Joined: Fri Jul 17, 2015 10:33 pm

Re: Updating SSL on Huzzah ESP8266

by robbgreathouse on Tue May 28, 2019 10:23 pm

It is now working for me.

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Re: Updating SSL on Huzzah ESP8266

by brubell on Wed May 29, 2019 9:54 am

robbgreathouse wrote:It is now working for me.


What did you do to get it working?

brubell
 
Posts: 402
Joined: Fri Jul 17, 2015 10:33 pm

Re: Updating SSL on Huzzah ESP8266

by robbgreathouse on Wed May 29, 2019 10:01 am

Hi,

I am doing the Internet of Things course on Instructables. You can find it here . https://www.instructables.com/class/Int ... ngs-Class/ . I have been able to get it to work with my WIFI (I had to use 2.4ghz, 5ghz doesn't work) and interact with Adafruit IO and ITTT.

I followed those instructions for software and hardware setup. I deleted everything I had previously installed and reinstalled it. I am using a Mac with OSX 10.14.

Hope this helps.

robbgreathouse
 
Posts: 7
Joined: Sun May 19, 2019 8:03 pm

Please be positive and constructive with your questions and comments.