0

Huh, even the 8266 Huzzah can wippersnap
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.

Huh, even the 8266 Huzzah can wippersnap

by TI545 on Wed Feb 16, 2022 7:06 pm

It's in the blog:
https://blog.adafruit.com/2022/02/14/wi ... h-esp8266/

I'm surprised, I had thought the 8266 wouldn't be easy to load wippersnapper onto, limited RAM. I have a couple Huzzah in my drawer I could pull out and use.

TI545
 
Posts: 51
Joined: Tue Feb 27, 2018 5:25 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by brubell on Fri Feb 18, 2022 10:52 am

We just added compatibility for the Feather HUZZAH ESP8266 this week - give it a shot and let us know if there are any issues!

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

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Sat Mar 05, 2022 6:10 pm

I stumbled across the whole Adafruit IO thing last night and saw that the ESP8266 was supported. I had one in my parts box, so pulled it out today and have been trying to get it going. I'm stuck right now at a compile error:

Wippersnapper_NoFS:35:68: error: no matching function for call to 'Wippersnapper_ESP8266::Wippersnapper_ESP8266(const char [8], const char [33], const char [11], const char [19])'
35 | Wippersnapper_WiFi wipper(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);

later noting that "candidate expects 0 arguments, 4 provided" -- presumable the class constructor.

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by brubell on Mon Mar 07, 2022 11:20 am

mrbubba wrote:I stumbled across the whole Adafruit IO thing last night and saw that the ESP8266 was supported. I had one in my parts box, so pulled it out today and have been trying to get it going. I'm stuck right now at a compile error:

Wippersnapper_NoFS:35:68: error: no matching function for call to 'Wippersnapper_ESP8266::Wippersnapper_ESP8266(const char [8], const char [33], const char [11], const char [19])'
35 | Wippersnapper_WiFi wipper(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);

later noting that "candidate expects 0 arguments, 4 provided" -- presumable the class constructor.


To install WipperSnapper on the ESP8266, please use the WipperSnapper Firmware Upload web tool. There's instructions for this on the following guide: https://learn.adafruit.com/adafruit-fea ... persnapper

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

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Mon Mar 07, 2022 4:30 pm

Thanks for getting back so quickly. The instructions at the link you posted were actually the first thing I tried.
I got to the point in the process where it says "To run the new firmware, please reset your device."
Following the instructions I navigated to https://io.adafruit.com/wippersnapper.
While there, I pressed the RST button on my Huzzah, but do not see a new modal pop-up with a picture of my ESP8266.
(It was at this point where I found something that suggested I try the Arduino IDE path, which lead to my original post.)
That said, I retried the whole process from scratch just now and get the same result.
Investigating further...
The problem seems to be that a WiFi connection isn't getting made. The MAC address given in the upload process doesn't show up in the router's device list. I have verified both the SSID and passphrase and that they are for the 2.4GHz network. Any suggestions on how to go about diagnosing this apparent connectivity issue?

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by brubell on Mon Mar 07, 2022 5:05 pm

Are you able to use Arduino IDE to open the serial monitor? Set it to 11520 baud, click the RST button and let me know the debug output from there.

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

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Mon Mar 07, 2022 5:29 pm

{a bunch of junk that won't copy/paste, followed by:}
Code: Select all | TOGGLE FULL SIZE
Subscribing to MQTT topics...
Added sub 0
Added sub 1
Added sub 2
Added sub 3
Added sub 4
Running Network FSM...
Attempting to connect to WiFi...
CONNECTING
Attempting to connect to WiFi...
CONNECTING
Attempting to connect to WiFi...
CONNECTING
Attempting to connect to WiFi...
CONNECTING
Attempting to connect to WiFi...
CONNECTING
ERROR [WDT RESET]: ERROR: Unable to connect to WiFi, rebooting soon...



After several minutes, there's no obvious signs of any rebooting taking place.

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Mon Mar 07, 2022 5:47 pm

FYI, I just tried running the WiFiClientBasic sketch from Examples/ESP8266WiFi and it never gets past:
Wait for WiFi... .......

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by brubell on Mon Mar 07, 2022 6:02 pm

Thanks for trying the basic sketch, you're on a 2.4GHz network? What channels? Are there spaces in your SSID or password? Can you try connecting to another network?

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

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Mon Mar 07, 2022 6:06 pm

<hangingheadinshame>
I'm pleased to report that there is still in fact a difference between the two ASCII characters "_" and "-".
When the correct one is used in the SSID, wonderful things happen. :-)
I'm so sorry for wasting your time. I had to have typed this wrong the exact same way at least 5 times.
</hangingheadinshame>
BTW, should it be needed again in helping the next lost puppy, I found that the WiFiScan sketch was helpful in this process.

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by nerfzooka on Thu Mar 24, 2022 1:51 pm

Lost puppy #2 here. My Huzzah doesn't show on the wipperSnapper board list and arduino serial monitor spits out the exact same messages as mrbubba's did.
Code: Select all | TOGGLE FULL SIZE
    Subscribing to MQTT topics...
    Added sub 0
    Added sub 1
    Added sub 2
    Added sub 3
    Added sub 4
    Running Network FSM...
    Attempting to connect to WiFi...
    CONNECTING
    Attempting to connect to WiFi...
    CONNECTING
    Attempting to connect to WiFi...
    CONNECTING
    Attempting to connect to WiFi...
    CONNECTING
    Attempting to connect to WiFi...
    CONNECTING
    ERROR [WDT RESET]: ERROR: Unable to connect to WiFi, rebooting soon...

BUT when I check my Credentials very carefully multiple times I can find no mistakes.


What does the Huzzah need from the router?

nerfzooka
 
Posts: 47
Joined: Sat Nov 30, 2013 11:19 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Thu Mar 24, 2022 2:01 pm

Have you tried the WiFiScan sketch? (My error was VERY subtle, and I repeated it many times.)

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by nerfzooka on Thu Mar 24, 2022 2:38 pm

WiFiScan sketch in Arduino shows local Wifis. What can that tell me?

nerfzooka
 
Posts: 47
Joined: Sat Nov 30, 2013 11:19 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by mrbubba on Thu Mar 24, 2022 3:03 pm

For me, WiFiScan highlighted where I had repeatedly substituted an '_' for a '-' in the SSID.
You indicated that there were other WiFi signals shown. If any of them are yours (beside the one you've been trying), can you connect to anything?
Absent that, I'm at a loss since I don't know what the underlying wippersnapper code is doing.

mrbubba
 
Posts: 8
Joined: Sun Jan 07, 2018 4:39 pm

Re: Huh, even the 8266 Huzzah can wippersnap

by nerfzooka on Thu Mar 24, 2022 4:00 pm

Thanks for your research, mrbubba. The arduino serial monitor check is a good idea. Just to see if my Huzzah could connect to my local WiFi I ran the arduino sketch HelloServer. It made a webpage on my network with no errors. So WiFissid and WiFipassword are ok. I'm going to check the other WipperSnapper Credentials more carefully.

nerfzooka
 
Posts: 47
Joined: Sat Nov 30, 2013 11:19 pm

Please be positive and constructive with your questions and comments.