Datasheet
Table Of Contents
- Guide Contents
- Overview
- Pinouts
- Power Pins
- Logic pins
- Serial pins
- I2C & SPI pins
- GPIO pins
- Analog Pins
- Other control pins
- NC Pins
- Assembly
- Header Options!
- Soldering in Plain Headers
- Soldering on Female Header
- Power Management
- Battery + USB Power
- Power supplies
- Measuring Battery
- ENable pin
- Using NodeMCU Lua
- Open up serial console
- Hello world!
- Scanning & Connecting to WiFi
- WebClient example
- Using Arduino IDE
- Install the Arduino IDE 1.6.8 or greater
- Setup ESP8266 Support
- Blink Test
- Connecting via WiFi
- Downloads
- Datasheets & Files
- More info about the ESP8266
- Schematic
- Fabrication Print
- ESP8266 F.A.Q.
- When I connect stuff to some of the pins, the Huzzah stops working. Whats up with that?
- My Huzzah board keeps crashing and resetting, whats up with that?
- I can't seem to find the Serial port on my computer for the Feather HUZZAH?
- I still can't seem to find the Serial port on my computer for the Feather Huzzah!
- So, I’m getting a 'no such file' error compiling for ESP8266 on my Mac
- Whenever I start or reset the ESP8226 there's a bunch of "gibberish" on the Serial console
- I'm having difficulties uploading to the HUZZAH with the Arduino IDE
- I tried that, but I'm still having difficulties uploading with the Arduino IDE
- I'm stuck in bootloader mode and can't upload
- I can't get Lua to respond to my commands

We can connect to the access point with wifi.sta.config and wifi.sta.connect - it will take a second or two to complete
the connection, you can query the module to ask the status with wifi.sta.status() - when you get a 5 it means the
connection is completed and DHCP successful
WebClient example
Once you're got the IP address you can connect to adafruit, for example, and read a webpage and print it out:
You can also have the module do DNS for you, just give it the hostname instead of IP address:
This is just a light overview of testing out your HUZZAH ESP breakout! For much more, check out NodeMCU's
documentation page https://nodemcu.readthedocs.io/ for the details on what functions are available to you, as well as
http://www.lua.org to learn more about the Lua scripting language
-- print ap list
function listap(t)
for ssid,v in pairs(t) do
authmode, rssi, bssid, channel = string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)"
print(ssid,authmode,rssi,bssid,channel)
end
end
wifi.sta.getap(listap)
wifi.sta.config("accesspointname","yourpassword")
wifi.sta.connect()
tmr.delay(1000000) -- wait 1,000,000 us = 1 second
print(wifi.sta.status())
print(wifi.sta.getip())
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(sck, c) print(c) end )
sk:connect(80,"207.58.139.247")
sk:send("GET /testwifi/index.html HTTP/1.1\r\nHost: www.adafruit.com\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(sck, c) print(c) end )
sk:connect(80,"www.adafruit.com")
sk:send("GET /testwifi/index.html HTTP/1.1\r\nHost: www.adafruit.com\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-huzzah-esp8266 Page 30 of 42










