digitalWrite(ESP8266_LED, HIGH);
delay(500);
digitalWrite(ESP8266_LED, LOW);
delay(500);
}
If the upload fails, first make sure the ESP8266 Thing is turned on – the red “PWR” LED
should be illuminated.
Faster Uploads! The serial upload speed defaults to 115200 bps, which is reliable, but can
feel a bit slow. You can increase the upload speed by a factor of about 8 by
selecting 921600 under the Tools > Upload Speed menu.
This faster upload speed can be slightly less reliable, but will save you loads of time!
There are still some bugs to be fleshed out of the esptool, sometimes it may take a couple
tries to successfully upload a sketch. If you continue to fail, try turning the ESP8266 Thing on
then off, or unplug then replug the FTDI in. If you still have trouble, get in touch with our
amazing tech support team.
Example Sketch: Posting to Phant
Our main goal for creating the ESP8266 Thing was finding a good platform to interact with our
free online data storage service: data.sparkfun.com.
Here’s a simple example sketch that posts four values to a test stream. Feel free to use that
stream temporarily to make sure your Thing is working (don’t abuse it please!).
Install the Phant Library! This example makes use of the SparkFun Phant Arduino library, to
make assembling Phant POSTs as easy as possible. The Phant library can be installed using