| Electronic Components Datasheet Search |
|
DEV-12887 Datasheet(PDF) 39 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-12887 Datasheet(HTML) 39 Page - SparkFun Electronics |
|
39 / 40 page ![]() dynamically updates the data in our blank <span> tags defined below. poll() is set to be called every pollRate (defaulted to 1000) milliseconds. Whew! Hopefully all of this stuff is easy enough to pattern-match and modify as you please. To make some other information stream to the webpage, you have to: 1. Edit the imp Device code to send the desired data to the agent. Use the agent.send() function to do this. 2. Edit the Agent code in two places: 1. Read the data in from the imp in the device.on() function. 2. In an HTTP request handler, send the data out as a JSON string. 3. Add something in the AJAX success function to look for the correct JSON “key” and “value” combination. Then do something with that data. 4. Add a location in the HTML body to show the data. E.g. <span id="myData"><!Data goes here></span> Give it a try! It sounds like a lot of work, but most of the constructs are already there for you to quickly add new displayable data. You could print the imp’s measured RSSI, or do some math on the analog input reading to turn it into a voltage. Resources & Going Further Now that you know how to hook up the imp and its Breakout, what project will you be making with it? Will you be adding to the “Internet of Things”? Need some inspiration? Check out some of these products and projects: Wireless Arduino Programming with Electric Imp Reprogram your Arduino from anywhere in the world using the Tomatoless Boots wireless bootloader with the Electric Imp. Weather Station Wirelessly Connected to Wunderground Build your own open source, official Wunderground weather station that updates every 10 seconds over Wifi via an Electric Imp. Arduino Wireless Communication via the Electric Imp How to communicate between an Electric Imp and Arduino using serial. Pushing Data to Data.SparkFun.com A grab bag of examples to show off the variety of routes your data can take on its way to a Data.SparkFun.com stream. Page 39 of 40 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |