전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

DEV-12887 데이터시트(PDF) 39 Page - SparkFun Electronics

부품명 DEV-12887
상세설명  Electric Imp Breakout Hookup Guide
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  SPARKFUN [SparkFun Electronics]
홈페이지  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-12887 데이터시트(HTML) 39 Page - SparkFun Electronics

Back Button DEV-12887 Datasheet HTML 32Page - SparkFun Electronics DEV-12887 Datasheet HTML 33Page - SparkFun Electronics DEV-12887 Datasheet HTML 34Page - SparkFun Electronics DEV-12887 Datasheet HTML 35Page - SparkFun Electronics DEV-12887 Datasheet HTML 36Page - SparkFun Electronics DEV-12887 Datasheet HTML 37Page - SparkFun Electronics DEV-12887 Datasheet HTML 38Page - SparkFun Electronics DEV-12887 Datasheet HTML 39Page - SparkFun Electronics DEV-12887 Datasheet HTML 40Page - SparkFun Electronics  
Zoom Inzoom in Zoom Outzoom out
 39 / 40 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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