Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Nothing is working after the update to 3.7.0
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Re: Nothing is working after the update to 3.7.0

by robotgrrl on Wed Jul 22, 2020 6:11 pm

Also experiencing not having Adafruit IO connect. Updated the Adafruit IO and Adafruit MQTT libraries as per https://forums.adafruit.com/viewtopic.php?f=56&t=167114. Still not connecting. The adafruitio_00_publish example shows "Connecting to Adafruit IO" then dots. All the information in config.h is the same and double checked it. Using an Adafruit Feather SAMD21 with WINC1500 - this one https://www.adafruit.com/product/3010.

robotgrrl
 
Posts: 35
Joined: Sat Apr 05, 2008 5:28 pm

Re: Nothing is working after the update to 3.7.0

by robotgrrl on Wed Jul 22, 2020 6:56 pm

Update: The solution that worked here was to read the fabulous manual - https://learn.adafruit.com/adafruit-fea ... rtificates
Completed that, and it works again :) Thanks!

robotgrrl
 
Posts: 35
Joined: Sat Apr 05, 2008 5:28 pm

Re: Nothing is working after the update to 3.7.0

by john87 on Wed Jul 22, 2020 10:16 pm

@robotgrrl

I'm glad you found a solution. I'm not using any WINC1500 parts so I'll keep looking.

I am still wondering about the long term utility of these parts. Is there a plan for a seamless, no effort required transition.

(Maybe it's not possible; I had to deal with three Siemens PLCs around the world which quit working on the same day for a similar reason.)

john87
 
Posts: 17
Joined: Sun Jul 21, 2019 11:20 pm

Re: Nothing is working after the update to 3.7.0

by john87 on Wed Jul 22, 2020 10:42 pm

@brent
After a few trials, I got the right portion of the stack dump pasted so that it parsed. That gave

Decoding stack results
0x402011d8: loop() at C:\Users\john\Documents\Arduino\Adafruit_io_testHuzzah_not_secure/Adafruit_io_testHuzzah_not_secure.ino line 92
0x40203c6c: loop_wrapper() at C:\Users\john\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 180

line 92 is while ((subscription = mqtt.readSubscription(5000))) {
the last line in the ino is 143

john87
 
Posts: 17
Joined: Sun Jul 21, 2019 11:20 pm

Re: Nothing is working after the update to 3.7.0

by mandreko on Thu Jul 23, 2020 8:55 am

The example MQTT sketch still doesn't work for me. I turned on all the debugging I could see, and I get this:


ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3664, room 16
tail 0
chksum 0xee
csum 0xee
v39c79d9b
~ld

SDK:2.2.2-dev(38a443e)/Core:2.7.2=20702000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-30-g92add50/BearSSL:5c771be
wifi evt: 2
Adafruit IO MQTTS (SSL/TLS) Example


Connecting to IoT
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
.scandone
state: 3 -> 2 (b0)
..state: 2 -> 0 (2)
reconnect
wifi evt: 1
STA disconnect: 2
......scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt

connected with IoT, channel 6
dhcp client start...
wifi evt: 0
ip:172.16.69.118,mask:255.255.255.0,gw:172.16.69.1
wifi evt: 3
.
WiFi connected
IP address:
172.16.69.118
Connecting to MQTT... [hostByName] request IP for: io.adafruit.com
[hostByName] Host: io.adafruit.com IP: 52.7.124.212
:ref 1
BSSL:_connectSSL: start connection
:wr 220 0
:wrc 220 220 0
:er -14 0x00000000
BSSL:_wait_for_handshake: failed
BSSL:Couldn't connect. Error = 'Unknown error code.'
Connection failed
Retrying MQTT connection in 5 seconds...
[hostByName] request IP for: io.adafruit.com
[hostByName] Host: io.adafruit.com IP: 52.7.124.212
:ur 1
:dsrcv 0
:del
:ref 1
BSSL:_connectSSL: start connection
:wr 220 0
:wrc 220 220 0
:er -14 0x00000000
BSSL:_wait_for_handshake: failed
BSSL:Couldn't connect. Error = 'Unknown error code.'
Connection failed
Retrying MQTT connection in 5 seconds...
pm open,type:2 0
[hostByName] request IP for: io.adafruit.com
[hostByName] Host: io.adafruit.com IP: 52.7.124.212
:ur 1
:dsrcv 0
:del
:ref 1
BSSL:_connectSSL: start connection
:wr 220 0
:wrc 220 220 0
:er -14 0x00000000
BSSL:_wait_for_handshake: failed
BSSL:Couldn't connect. Error = 'Unknown error code.'
Connection failed
Retrying MQTT connection in 5 seconds...

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

>>>stack>>>

ctx: cont
sp: 3ffffde0 end: 3fffffc0 offset: 01a0
3fffff80: 00000001 3ffee710 3ffee910 4020119e
3fffff90: 3fffdad0 00000000 3ffee95c 402011ec
3fffffa0: 3fffdad0 00000000 3ffee95c 40207280
3fffffb0: feefeffe feefeffe 3ffe84f4 40101231
<<<stack<<<

mandreko
 
Posts: 16
Joined: Sun Feb 24, 2019 12:39 pm

Re: Nothing is working after the update to 3.7.0

by john87 on Thu Jul 23, 2020 12:38 pm

I was offered an update to the ESP8266 board package, which I installed, going from 2.63 to 2.72. The results are pretty much the same, it's run a while but is still failing. The stack decode is:


Decoding stack results
0x40201182: MQTT_connect() at C:\Users\john\Documents\Arduino\Adafruit_io_testHuzzah_not_secure/Adafruit_io_testHuzzah_not_secure.ino line 137
0x402011d8: loop() at C:\Users\john\Documents\Arduino\Adafruit_io_testHuzzah_not_secure/Adafruit_io_testHuzzah_not_secure.ino line 92
0x40203cf4: loop_wrapper() at C:\Users\john\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.2\cores\esp8266\core_esp8266_main.cpp line 197

I see now that the large line number, 197, is not in my code but in the core.
John

john87
 
Posts: 17
Joined: Sun Jul 21, 2019 11:20 pm

Re: Nothing is working after the update to 3.7.0

by The_Bucho on Wed Jul 29, 2020 11:02 am

I'm having a similar problem, though only when I use the Ethernet wing.

My Huzzah32 is able to connect to io just fine through wifi, but the project will be installed in some locations where wifi is unavailable, so I'm adding a version of the sketch to enable an ethernet wing.

When the wing is used, the serial monitor will print "Connecting to Adafruit IO" and stay there. In fact, the while loop doesn't seem to be running so I'm not sure that io.connect() is even executing. I'm not seeing "." printed on the monitor to indicate that the function ran at all.

Getting this ethernet wing to work has been very difficult. I was working on it three months ago, quit, and came back to it yesterday. Still no luck.

The_Bucho
 
Posts: 5
Joined: Thu Dec 20, 2018 6:14 pm

Re: Nothing is working after the update to 3.7.0

by mandreko on Wed Jul 29, 2020 11:11 am

I've basically given up on it. I can get ThingSpeak, MyDevices, and HomeAssistant/ESPHome to work on the same ESP8266 device, but IO just fails unless I use my phone's WiFi.

mandreko
 
Posts: 16
Joined: Sun Feb 24, 2019 12:39 pm

Re: Nothing is working after the update to 3.7.0

by The_Bucho on Wed Jul 29, 2020 1:04 pm

The_Bucho wrote:I'm having a similar problem, though only when I use the Ethernet wing.

My Huzzah32 is able to connect to io just fine through wifi, but the project will be installed in some locations where wifi is unavailable, so I'm adding a version of the sketch to enable an ethernet wing.

When the wing is used, the serial monitor will print "Connecting to Adafruit IO" and stay there. In fact, the while loop doesn't seem to be running so I'm not sure that io.connect() is even executing. I'm not seeing "." printed on the monitor to indicate that the function ran at all.

Getting this ethernet wing to work has been very difficult. I was working on it three months ago, quit, and came back to it yesterday. Still no luck.


Forgot to mention that I can see that my feather wing on my Huzzah32 is indeed getting an ip address from my router (eero pro), verifying that the ethernet is working...there's just no one home at adafruit.io and the io.connect() function is hung up somehow...

From reading around, I suppose this is possibly from the SSL update and the fingerprint of the cert is not updated in the ethernet library....but there's no suggestion here in the forum of that problem applying to the ethernet feather...only to wifi and WINC1500.

The_Bucho
 
Posts: 5
Joined: Thu Dec 20, 2018 6:14 pm

Re: Nothing is working after the update to 3.7.0

by brubell on Fri Jul 31, 2020 10:01 am

From reading around, I suppose this is possibly from the SSL update and the fingerprint of the cert is not updated in the ethernet library....but there's no suggestion here in the forum of that problem applying to the ethernet feather...only to wifi and WINC1500.


Does the Adafruit MQTT Ethernet example work for you? https://github.com/adafruit/Adafruit_MQ ... t_ethernet

This example uses the insecure SSL port (1883) to connect to Adafruit IO

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

Please be positive and constructive with your questions and comments.