Sonowyoucanpostto a fullfledgedLennoxserveror a fullfledgedWindowsserverusetheentireactiveservice.
ActivedirectoryserviceisinordertoactuallydosomethingbasedoffofthedatathatisbeingsentbytheArduino, youknow, withWiFioragainifyouhave a networkshield.
Sothat's whatwe'regoingtobeshowingyoutoday.
Basically, theprojectthat I'm goingtodotodayis I haveourstandardandalongtemperaturesensor.
Soyouusethisisjustthestandardsensortoetogiveus, like a dynamic, dynamicvariables, valuesforvariables.
Then I havetheArduino, youknow, withWiFi.
Andsowhatwe'regoingtoDioiswe'regoingtocreate a sketchforthisArduino, youknow, withWiFi, itisgoingtofindoutwhatthetemperatureis, andthenitwillpostthatdatato a P eight p scriptonourserver.
Butdoyourealizeifyoudon't careabouttheserialmonitor, youcanjustsimplyplugthisintoitsownpowersupplyoncethecodehasbeenuploadedtoitanditnolongerhastobeconnectedto a computer.
Sobasically, youcouldcreatethisprojectconnectedto a powersupply, putitintoyourserverroomorwhereverelse, andtheycanjustsimplytruckalongwithoutanyadditionalcomputerbeingpluggedintoitsothatlet's gooverandtake a lookatthesketchandPHPcode.
Thenwehavethetemperaturesensorandsowehavethesensorpenandwehavethatdefinedfor a fiveconnected a fivelikenormalthatwecomedownandwehavetheinformationrequiredtoconnecttoourWiFi.
Hereagain, I have a guestnetworkthat I'vesetupinthenameof.
Thatnetworkistestandformefortrouble.
So I don't havetogointostupidtroubleshooting.
I justleavethepasswordasblankso I don't runintoanyrandomissues.
SoSSideastestpasswordisblank.
ThenAsfarasWiFiconnectionisconcerned, wehavetocreate a variableforstatus.
We'regoingtosetthatto W W L underscoreIdolunderscorestatus.
Therewegodownheretotheprintline, anotherprintlinehostallowedtocreate a guydotcomandwetellitwhatcontenttypeThenwetellitthecontentlengthAndsowegetthecontentlengthbyusingthisfunctionpostdatadotlengthAndsothiswillsend.
Sothen, inthecerealmonger, we'llalsobeabletoviewwhattheyardweknowissendingouttomakesurethatit's rightagainwhenthebiggestproblemswithscriptsandserversandallthosekindsofthingsisthatyouyoufatfingersomethingandyouput a capital T whereyouput a cap, youknow, youput a capitalintheirownplace, youput a spaceinthewrongplace.
Sowhatthisdoes, isthisgonnaprintoutfor a troubleshootingprocedurewillprintouttotheserialmonitorsoweknowwhatisactuallybeingsent.
ThatscriptthatthatpostdotPHPscriptthatwehaveupon a lotofPeterguydotcom.
Sothen I cango.
I canopenupGoogleChromeAndso, asyoucanseehere, thisfelinecomputerguydotcomforwardslashtestSothisisthesub A folder, andthenwe'regoingtotemptdothtmlagain.
Nofatfinger.
Don't bestupid.
Don't don't gotopostthatPHPPostop P.
D.
B is a scripthesentthedatatotempdothtmliswhereyou'rereadingit, rightin a humanreadableformat.
So I gohere, youcanseethisistheoldtimecodeandthisistheoldtemperature.
If I do a refresh, wecanseeTheimportantthingisweseethenewtimecodeandthenewtemperatureagain.
If I gohereandagain, I putmyfingeronlittleand a lotoftemperaturesensortotrytoheatitup.
That I canrefresh.
Therewego.
Weseeitgoesupto 79 11 andthen I canrefresh.
Recievegoesupto 81.
Andif I refreshagain, weseeitgoesto 82.
Fine.
Takemyfingeroff, giveit a second, thenrefreshagain, Nowgoesdownto 80.
Sothisisshowingyouthattheyardweknowissendingthedatauptothatpostupheretobescriptthatpost a PhDscriptisparsingthatdataandsendingitoverthistemp, nothtmlpage, andwereabletoopenitupagain.
Allofthisbeingprintedoutrightnowisjustpuretext.
IfyouwantedtomakethisfancywithHTMLtagsoragain, ifyouwanttodumpthisinto a databaseorwhateverelsethatthat's that's uptoyou.
Soifyouwerein a warehouseenvironmentandisdetectingwhetherwhether, likeshelvinggetsknockedorsomekindofpalletsgetknockedifitgetsknocked, itcouldpostthatdatato a server, andthenthatserverwouldthenbeabletodothingslikesendoutofnotificationon a twilio.