![]() to the stated, using the as a WPA, WPA2, WiFI.begin(, ) initiates a WiFI connection Set WiFi mode to station (as opposed to AP or AP_STA) (Works a lot like theĬonst int LED_PIN = 5 // Thing's onboard, green LEDĬonst int ANALOG_PIN = A0 // The only analog pin on the ThingĬonst int DIGITAL_PIN = 12 // Digital pin to be readĬonst char PhantHost = "" Ĭonst char PublicKey = "wpvZ9pE1qbFJAjaGd3bn" Ĭonst char PrivateKey = "wzeB1z0xWNt1YJX27xdg" Or you can grab the Phant library from our phant-arduino repository, and follow along with our Installing an Arduino Library for help installing the library.Ĭopy the code below, or download the example sketch.īefore uploading your code to the Thing, make sure you modify the WiFiSSD and WiFiPSK variables, setting them to the SSID and password of your WiFi network. Install the latest version (or at least 2.2.0). Go to the Sketch > Include Library > Manage Libraries., then search for "Phant" to find the library. The Phant library can be installed using Arduino's Library Manager. Install the Phant Library! This example makes use of the SparkFun Phant Arduino library, to make assembling Phant POSTs as easy as possible. Suggested Readingīefore continuing on with this tutorial, you may want to familiarize yourself with some of these topics if they’re unfamiliar to you: Example 2 put the Thing to sleep to save that sweet battery juice. Example 1 showed you how you can use the Thing Board to post data to. The code in this tutorial will need to be adjusted to work with the other data streams.Īn archived tutorial of our first and third ESP8266 Thing board examples used in our ESP8266 Thing Board Hookup Guide. You can read our blog post on the topic for an overview and helpful links for each platform. ![]() The three we recommend are Blynk, ThingSpeak, and Cayenne. There are several other maker-friendly, data-streaming services and/or IoT platforms available as alternatives. The system has reached capacity and, like a less-adventurous Cassini, has plunged conclusively into a fiery and permanent retirement. Phant is No Longer in Operation Unfortunately Phant, our data-streaming service, is no longer in service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |